Global Documentation Configuration

Every documentation site requires a docs.json file that contains the core configuration settings. This file is the central control point for everything from styling and navigation to integrations and analytics.

If you’re currently using the legacy mint.json configuration file, please update the CLI:

npm i -g mintlify@latest

And run the new upgrade command in your docs repository:

mintlify upgrade

This will generate a docs.json based off of your mint.json. Then, please delete the mint.json file from your repository.

Make sure to place your docs.json file in the root directory of your documentation project.

Core Properties

These fundamental settings define your documentation’s identity and basic configuration.

Project Information

name
string
required

The name of your project, organization, or product. This appears in various places throughout your documentation.

Minimum length: 1 character

description
string

A brief description of your documentation site. This is used for SEO purposes and LLM indexing to help users find your content.

Theme Selection

theme
"mint" | "maple" | "palm"
required

Choose the layout theme for your project. Each theme provides a unique look and feel:

  • Mint: Our default modern theme
  • Maple: Clean and minimalist
  • Palm: Bold and engaging

Visual Customization

Configure the visual elements of your documentation to match your brand.

Brand Colors

colors
object
required

Define your documentation’s color scheme. At minimum, specify the primary color:

{
  "colors": {
    "primary": "#ff0000"
  }
}

Logo Configuration

Set your documentation’s logo. You can either use a single logo or specify different versions for light and dark modes.

Favicon Settings

favicon
string or object

Configure your site’s favicon. The file will be automatically resized to appropriate favicon sizes.

Typography & Fonts

fonts
object

Customize the typography of your documentation with custom fonts.

navigation
object
required

Define your documentation’s navigation structure.

navbar
object

Configure the top navigation bar.

Configure the footer content and layout.

API Documentation

api
object

Settings for API reference documentation.

Analytics & Integrations

integrations
object

Configure third-party integrations.

Best Practices

When configuring your docs.json file:

  1. Keep related settings grouped together
  2. Use meaningful names for navigation items
  3. Provide complete paths for all assets
  4. Test configurations in both light and dark modes
  5. Verify all external links
  6. Maintain appropriate color contrast
  7. Configure SEO settings properly

Use JSON schema validation to ensure your configuration is correct. Add this to your docs.json:

{
  "$schema": "https://mintlify.com/docs.json"
}

Example Configuration

Remember to validate your configuration after making changes. Use the Mintlify CLI to test your documentation locally before deploying.