docs.json is the single configuration file that controls everything about your Mintlify site. It lives at the root of your documentation repository.
Required fields
Everydocs.json must include these four fields:
| Field | Description |
|---|---|
name | The site name shown in the browser tab and default social previews. |
theme | The visual theme (mint, almond, willow, sequoia, and others). |
colors.primary | Your brand’s primary color as a hex code. Used for links, buttons, and accents. |
navigation | Defines the sidebar structure. See navigation for details. |
Appearance
- Logo and favicon
- Colors
- Fonts
Set
logo.light and logo.dark to paths for your logo images. Mintlify switches between them based on the visitor’s color scheme preference.Site structure
navbar— Configure the top navigation bar: links and a primary CTA button.footer— Add social media links displayed at the bottom of every page.banner— Show a site-wide announcement bar with a message and optional link.redirects— Map old URLs to new ones to preserve links when you restructure content.
API settings
If your docs include an API reference, configure it underapi:
SEO
Setmetadata fields to control how your site appears in search results and social link previews. The timestamp option adds a last-updated date to each page automatically from its Git history.