docs.json file lets you turn a collection of Markdown files into a navigable, customized documentation site. This required configuration file controls styling, navigation, integrations, and more. Think of it as the blueprint for your documentation.
Settings in docs.json apply globally to all pages.
Setting up your docs.json
To get started, you only need to specifytheme, name, colors.primary, and navigation. Other fields are optional and you can add them as your documentation needs grow.
Customization
Theme
The layout theme of your site. Choose from:mint, maple, palm, willow, linden, almond, aspen, sequoia, luma.
See the Themes documentation for more information.
Name
The name of your project, organization, or product.Colors
The colors used in your documentation. Colors are applied differently across themes.All color values must be hex codes beginning with
#.Logo
Set your logo for both light and dark mode.Favicon
Path to your favicon file, including the file extension. Automatically resized to appropriate favicon sizes.Single favicon
Light and dark favicons
Fonts
Set custom fonts for your documentation. The default font varies by theme.Supports Google Fonts family names. Google Fonts are loaded automatically when you specify a family name.
Background
Background color and decoration settings.Variables
Global variables for use throughout your documentation. Variables are replaced at build time using{{variableName}} syntax.
Navigation
The navigation structure of your content. See Navigation for detailed information.Integrations
Third-party integrations for analytics, chat, and more.Analytics integrations
Chat integrations
Telemetry
When set to
false, feedback features are also disabled and do not appear on your documentation pages.