docs.json is the central configuration file for your docs site. It defines
global settings, navigation, and several UI behaviors.
Use this section when you are configuring docs by editing files directly, either locally with the CLI or in source mode.
Where it lives
Place docs.json at the docs root, which is the folder that contains your docs
configuration and pages.
Minimal valid example
title and navigation are required.
Core keys
Required keys
title: Site title.navigation: Site navigation structure.
Optional keys
home: Page path used as the home route.logo: Light/dark logo configuration.theme: Visual theme settings, including base Tailwind color palette.navbar: Top navigation actions and links.footer: Social links and footer links.playground: Playground settings such asproxy.
Theme base color
Use theme.baseColor to remap all framework neutral-* colors.
Allowed values:
slate, gray, zinc, neutral, stone, taupe, mauve, mist, olive.
Use an object to set different base colors for light and dark mode:
If you provide only one mode in the object, the missing mode defaults to
neutral.
If omitted, the default remains neutral.
How page paths work
Page paths in docs.json:
- Use docs-relative paths, for example
getting-started/quickstart. - Do not include
.mdx. - Must reference an existing file.
Navigation top-level modes
navigation should use one top-level container for your docs structure.
In practice, teams typically choose one of these:
pagesmenutabsopenapi
pages mode
menu mode
Use openapi inside menu items when you want an API reference section.
tabs mode
Use tabs when the primary sections should appear above the sidebar. A tab can
contain pages, menu, or openapi. presentation can be topbar,
or sidebar; if omitted, it defaults to topbar.
Defaults and fallbacks
- If
homeis not set, Radiant Docs uses the first documentation page found in navigation. - Page heading resolution is: frontmatter
title-> pagetitleindocs.json-> filename-derived title. - Navigation labels come from
docs.jsonpage titles, not frontmatter.
For heading title behavior, see Format text.
Common validation rules
navbar.linkssupports up to 3 links.- In a
menuitem, include exactly one ofpagesoropenapi. - In a
tabsitem, include exactly one ofpages,menu, oropenapi. - OpenAPI
includeandexcludeare mutually exclusive. - Footer social keys must be one of the supported platform names.
- Footer link
hrefmust be eitherhttp(s)://...or an internal path starting with/.