Configuration overview
Everything about the site lives in rapidoc.config.yaml at the project root. Only site.title is required.
# yaml-language-server: $schema=./node_modules/@rapidoc/portal/schema.jsonsite: # title, logo, favicon, bannertheme: # accent color, light/dark mode, fontsheader: # row 1: links and menus right of the searchnavigation: # row 2: one tab per entry; documentation tabs have a sidebarapis: # your OpenAPI specsdocs: # docs folder, table of contents, edit linksfooter: # call to action, columns, social links, newsletterrapidoc: # <rapi-doc> attributes for API reference pagessearch: # full-text search on or offredirects: # old URLs to new onesauth: # OpenID Connect sign-in (optional)access: # who may read what (optional)Conventions
Section titled “Conventions”The same three words mean the same thing everywhere:
labelis the text of anything clickable.hrefis any URL: a path on this site (/docs/intro) or a full URL.itemsare children: dropdown items, mega-menu links, sidebar groups.
A navigation item’s kind comes from its keys: slug (or a plain string), href, items, autogenerate, api or catalog.
Strict by design
Section titled “Strict by design”The schema rejects unknown keys. A typo fails the build with its path and, where it can, the key you meant:
navigation[0].items[2]: unknown key "path" (use href (links) or slug (doc pages))Autocomplete in your editor
Section titled “Autocomplete in your editor”The first line of the file points editors that understand YAML schemas (VS Code with the YAML extension, JetBrains IDEs) at the JSON Schema that ships as @rapidoc/portal/schema.json:
# yaml-language-server: $schema=./node_modules/@rapidoc/portal/schema.jsonYou get completion, descriptions on hover, and errors as you type.
Other formats
Section titled “Other formats”The engine also reads rapidoc.config.yml, .json, .js, .mjs and .ts. A JavaScript or TypeScript config default-exports the same object.
The sections
Section titled “The sections”- Site: title, logo, favicon, URL, banner
- Theme: accent color, mode, fonts
- Header: links, dropdowns, mega-menus
- Navigation: tabs and sidebars
- APIs: specs, ids, categories
- Workflows: Arazzo files, drawn and runnable in the docs
- Footer
- Docs, search and redirects
- Sign-in and access
Every key in one table: Configuration keys.