Skip to main content
Every Mintlify site needs a docs.json file with the core configuration settings. This file controls everything from your project name and logo to navigation structure, colors, and API configurations.
The docs.json file should be placed in the root of your documentation directory.

Properties

Basic configuration

name
string
required
Name of your project. Used for the global title that appears in the browser tab and throughout your documentation.Example: mintlify
navigation
Navigation[]
required
An array of groups with all the pages within that group. This is the core structure that defines your documentation’s navigation menu.

Branding

Path to logo image or object with path to “light” and “dark” mode logo images. You can provide different logos for light and dark mode to ensure optimal visibility.
favicon
string
Path to the favicon image that appears in the browser tab.

Theme colors

colors
Colors
Hex color codes for your global theme. These colors define the visual identity of your documentation.
backgroundImage
string
A background image to be displayed behind every page. This creates a branded experience throughout your documentation. See example implementations with Infisical and FRPC.

Topbar configuration

Array of names and urls of links you want to include in the topbar. These appear in the top right of your documentation.
topbarCtaButton
Call to Action
A prominent call-to-action button in the topbar. Can be a link or display GitHub repository information.
tabs
Tabs[]
An array of navigational tabs. Tabs allow you to organize your documentation into major sections.
anchors
Anchor[]
An array of the anchors, includes the icon, color, and url. Anchors are special navigation sections that appear prominently in your sidebar.
topAnchor
Object
Override the default configurations for the top-most anchor. This is the first section that appears in your navigation.

Versioning

versions
string[]
Array of version names. Only use this if you want to show different versions of docs with a dropdown in the navigation bar.
Version management allows you to maintain multiple versions of your documentation simultaneously, useful for APIs with breaking changes.

API configuration

api
API
Configuration for API settings. Learn more about API pages at API Components.
openapi
string | string[]
A string or an array of strings of URL(s) or relative path(s) pointing to your OpenAPI file. Mintlify can automatically generate API documentation from OpenAPI specifications.Examples:
"openapi": "https://example.com/openapi.json"
An object of social media accounts where the key:property pair represents the social media platform and the account url.Example:
{
  "x": "https://x.com/mintlify",
  "website": "https://mintlify.com"
}

User feedback

feedback
Feedback
Configurations to enable feedback buttons that allow users to contribute to your documentation.

Display preferences

modeToggle
ModeToggle
Customize the dark mode toggle and set default theme preferences for your documentation.

Example configuration

Here’s a complete example of a docs.json file with common settings:
{
  "name": "My Documentation",
  "logo": {
    "light": "/logo/light.svg",
    "dark": "/logo/dark.svg"
  },
  "favicon": "/favicon.png",
  "colors": {
    "primary": "#0D9373",
    "light": "#07C983",
    "dark": "#0D9373"
  },
  "topbarLinks": [
    {
      "name": "Contact",
      "url": "https://example.com/contact"
    }
  ],
  "topbarCtaButton": {
    "type": "github",
    "url": "https://github.com/example/repo"
  },
  "navigation": [
    {
      "group": "Getting Started",
      "pages": ["quickstart", "installation"]
    }
  ],
  "footerSocials": {
    "github": "https://github.com/example",
    "x": "https://x.com/example"
  }
}
You can validate your docs.json configuration by running mint dev and checking for any errors in the console.

Build docs developers (and LLMs) love