Site settings
Features
Turn search, the API playground, and reader tools on or off for a published site
What the Features settings control
The Features settings decide which tools readers see on our published docs site. Most options are toggles, and a few are small choices such as the search provider or the API playground address. We change these settings in the dashboard, and readers see the changes after we publish. For how publishing works, see Publishing and restore.
The same options are stored in the site configuration, so we can also edit them in Advanced JSON if we prefer.
Reader tools
These toggles change the layout and navigation that readers use on each page.
| Setting | Default | What it controls |
|---|---|---|
branding | On | Whether the Doxa branding appears on the published site. |
rightSidebar | On | Whether pages show a right-hand sidebar. |
tableOfContents | On | Whether pages show a table of contents. |
scrollToTop | On | Whether readers get a control that returns them to the top of the page. |
feedbackEdit | Off | Whether pages offer a feedback option for editing. |
AgressiveNavPrefetch | On | Whether navigation links prefetch pages. Use this exact spelling in Advanced JSON. |
Search
Every generated docs site includes full-text search. The searchProvider setting chooses which search provider answers readers. When we leave it unset, the site uses the default for its plan. The plan is checked at publish time, so a site never gets a provider that its plan does not allow.
API playground and API reference
The API playground is on by default. It lets readers send "Try it" requests from API reference pages. Three settings control it.
| Setting | Default | What it controls |
|---|---|---|
apiPlayground | On | Shows the "Try it" playground on API reference pages. |
apiPlaygroundBaseUrl | Not set | The address "Try it" requests are sent to. It must be an http or https URL, or a path that starts with / on our docs host. |
apiPlaygroundTransport | Not set | Who sends the request. When unset, the Doxa proxy sends it. |
When the transport is unset, requests go through the Doxa proxy, so our API needs no CORS setup. If we choose the browser transport, the reader's browser sends the request directly, and the reader's API key does not pass through Doxa.
Note:
If apiPlaygroundBaseUrl is not set, "Try it" stays off even when apiPlayground is on. We set the base URL to the API that readers should call.
Copy and raw text
These settings control the copy options and raw files that readers can use.
| Setting | Default | What it controls |
|---|---|---|
copyPage.markdown | On | Whether readers can copy a page as Markdown. |
copyPage.rawText | On | Whether readers can copy a page as plain text. |
rawMarkdown | On | Whether raw Markdown versions of pages are available. |
Every published site also includes llms.txt and llms-full.txt files, so AI tools can read our docs directly.
Load from GitHub
The loadFromGithub setting is off by default. We leave it off unless we have a specific reason to change it.
Example: turn on the API playground
If we want readers to try API calls from our API reference pages, we turn on the playground and set the address of our API. Every other option keeps its default.
{
"features": {
"apiPlayground": true,
"apiPlaygroundBaseUrl": "https://api.example.com"
}
}Replace https://api.example.com with the address of our own API. After we save the change, we publish the site so readers see it.