Skip to main content
The 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 specify theme, name, colors.primary, and navigation. Other fields are optional and you can add them as your documentation needs grow. For the best editing experience, include the schema reference at the top of your docs.json file. This enables autocomplete, validation, and helpful tooltips in most code editors:

Reference

This section contains the full reference for the docs.json file.

Customization

required
The layout theme of your site.One of the following: mint, maple, palm, willow, linden, almond, aspen, sequoia, luma.See Themes for more information.
string
required
The name of your project, organization, or product.
object
required
The colors used in your documentation. Colors are applied differently across themes. If you only provide a primary color, it applies to all color elements.
string
Description of your site for SEO and AI indexing.
Set your logo for both light and dark mode.
string or object
Path to your favicon file, including the file extension. Automatically resized to appropriate favicon sizes. Can be a single file or separate files for light and dark mode. Example: /favicon.png
object
Thumbnail customization for social media and page previews.
object
Visual styling configurations.
object
Icon library settings.
object
Set custom fonts for your documentation. The default font varies by theme.
object
Light/dark mode toggle settings.
object
Background color and decoration settings.
object
Global variables for use throughout your documentation. Variables are replaced at build time using {{variableName}} syntax.

Structure

object
Navigation bar items to external links.
object
required
The navigation structure of your content. See Navigation for detailed configuration options.
object
User interaction settings for navigation elements.
object
Metadata configuration for documentation pages.
Footer content and social media links.
object
Site-wide banner displayed at the top of pages.
array of object
Redirects for moved, renamed, or deleted pages.

API configurations

object
API documentation and interactive playground settings.
object
SEO indexing configurations.
Search display settings.

Integrations

object
Third-party integrations for analytics, chat, and tracking.

Errors

object
Error handling settings.

Examples

docs.json