docs.json overview
docs.json is the central configuration file for your docs site. It defines global settings, navigation, and several UI behaviors.
Where it lives
Place docs.json at the root of your documentation folder.
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:
pagesmenu
pages mode
menu mode
Use submenu.openapi inside menu items when you want an API reference section.
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,submenumust contain exactly one ofpagesoropenapi. - 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/.