Octri

docs custom-code

Shows whether custom code is on and how much CSS and HTML each slot holds. --json prints the code itself. 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 custom code.

bash
octri docs custom-code [show | set key=value …]

octri docs custom-code set key=value …

Sets the code your site loads, usually read from files with @. Saved code reaches readers only while custom code is on, so the command reminds you if enabled is still false.

Arguments

key=valuestringrequired

The slots.

ValueMeaning
enabledtrue or false
cssA stylesheet
headHtmlHTML added to each page's head
bodyEndHtmlHTML added at the end of each page's body

Examples

Show custom code

bash
octri docs custom-code
Output
✔ Loading custom code

Custom code off
  css          empty
  headHtml     empty
  bodyEndHtml  empty
  --json prints the code itself

Load a stylesheet

bash
octri docs custom-code set css=@docs.css enabled=true