docs theme
Prints every appearance setting your project has set. There's no draft: a change is live on your docs site as soon as the command returns, the same as saving in API Studio. See appearance.
bash
octri docs theme [show | set key=value …]octri docs theme set key=value …
Changes one or more settings and keeps the rest. Values are text, except true and false, which turn something on or off. @ reads a value from a file, as in css=@docs.css. A dotted key sets one field inside another, as in defaultAuth.type=bearer.
The API ignores a key it doesn't know rather than failing, so the command compares what it sent with what was saved and names any key that was dropped. A typo can't pass for a save.
Arguments
key=valuestringrequiredOne or more settings.
| Value | Meaning |
|---|---|
primaryColor logoUrl logoUrlDark logoHref showLogo faviconUrl | Brand |
colorScheme showThemeToggle | Light and dark |
layout contentWidth borderRadius | Layout |
fontFamily headingFont codeFont googleFontFamily googleHeadingFont googleCodeFont | Fonts |
sidebarTextSize contentTextSize codeTextSize | Text size |
navbarLayout navbarSurface navbarColor navbarColorDark searchPlacement | Top bar |
sidebarStyle sidebarWidth sidebarResizable showSidebarLines showSidebarIcons | Sidebar |
codeTheme codeThemeDark showToc showGuideToc | Code and outline |
repoUrl repoStarsEnabled | Repository link |
Examples
Show appearance
bash
octri docs themeOutput
✔ Loading theme
Docs appearance
borderRadius default
codeFont jetbrains-mono
codeTextSize smaller
codeTheme octri
colorScheme system
contentTextSize large
contentWidth default
customCss not set
faviconRasterUrl not set
faviconUrl not set
fontFamily manrope
googleCodeFont not set
googleFontFamily not set
…Change several settings
bash
octri docs theme set primaryColor=#ff6a00 colorScheme=dark codeTheme=nordRelated
octri docs buttons: Add and remove the buttons at the right of the top bar.octri docs socials: Set the social links shown at the bottom of each page.octri docs custom-code: Load your own CSS and HTML on every docs page.