Getting started
Core configuration
Components
API pages
- Playground
- OpenAPI setup
- Customization
- AsyncAPI
- MDX
- Troubleshooting
Authentication and personalization
Guides
Integrations
- Analytics
- SDKs
- Support
- Privacy
Version control and CI/CD
Global settings
Configure site-wide settings with the docs.json
file
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.
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:
{
"$schema": "https://mintlify.com/docs.json",
"theme": "mint",
"name": "Your Docs",
"colors": {
"primary": "#ff0000"
},
"navigation": {
// Your navigation structure
},
// The rest of your configuration
}
Reference
This section contains the full reference for the docs.json
file.
Customization
The layout theme of your site.
One of the following: mint
, maple
, palm
, willow
, linden
, almond
.
See Themes for more information.
The name of your project, organization, or product.
The colors to use in your documentation. A primary color is required. For example:
{
"colors": {
"primary": "#ff0000"
}
}
The primary color of your theme.
Must be a hex code beginning with #
.
Primary color variant for light mode.
Must be a hex code beginning with #
.
Primary color variant for dark mode.
Must be a hex code beginning with #
.
Description of your site for SEO and AI indexing.
Your logo for both light and dark mode.
Path pointing to your logo file for light mode. Include the file extension. Example: /logo.png
Path pointing to your logo file for dark mode. Include the file extension. Example: /logo-dark.png
The URL to redirect to when clicking the logo. If not provided, the logo will link to your homepage. Example: https://mintlify.com
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
Visual styling configurations.
The style of the page eyebrow. Choose section
to show the section name or breadcrumbs
to show the full navigation path. Defaults to section
.
The theme of the code blocks. Choose system
to match the site theme or dark
for always dark code blocks. Defaults to system
.
Icon library settings.
Icon library to use throughout your documentation. Defaults to fontawesome
.
You can specify a URL for any individual icon, regardless of the library setting.
Font configuration for your documentation.
Font family, such as “Open Sans”, “Playfair Display”.
Font weight, such as 400 or 700. Variable fonts support precise weights such as 550.
URL to your font source, such as https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2.
Font file format.
Override font settings specifically for headings.
Font family, such as “Open Sans”, “Playfair Display”
Font weight, such as 400, 700. Variable fonts support precise weights such as 550.
URL to your font source, such as https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2.
Font file format.
Override font settings specifically for body text.
Font family, such as “Open Sans”, “Playfair Display”
Font weight, such as 400, 700. Variable fonts support precise weights such as 550.
URL to your font source, such as https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2.
Font file format.
Background color and decoration settings.
Background image for your site. Can be a single file or separate files for light and dark mode.
Background decoration for your theme.
Structure
Navigation bar items.
Primary button in the navbar.
Button style. Choose button
for a standard button with a label or github
for a link to a GitHub repository with icon.
Button text. Only applies when type
is button
.
Button destination. Must be a valid path or external URL. If type
is github
, must be a GitHub repository URL.
The navigation structure of your content.
Global navigation elements that appear accross all pages and sections.
Language switcher configuration for multi-language sites.
Language code in ISO 639-1 format
Whether this is the default language.
Whether to hide this language option by default.
A valid path or external link to this language version of your documentation.
Version switcher configuration for multi-version sites.
Top-level navigation tabs for organizing major sections.
Anchored links that appear prominently in the sidebar navigation.
Display name of the anchor.
Minimum length: 1
Icon for the anchor. Can be a URL (relative or external), Font Awesome icon, or Lucide icon.
Whether to hide this anchor by default.
URL or path for the anchor destination.
Dropdown menus for organizing related content.
Display name of the dropdown.
Minimum length: 1
Icon for the dropdown. Can be a URL (relative or external), Font Awesome icon, or Lucide icon.
Whether to hide this dropdown by default.
URL or path for the dropdown destination.
Language switcher for multi-language sites.
Footer content and social media links.
Social media profiles to display in the footer. Each key is a platform name and each value is your profile URL. For example:
{
"x": "https://x.com/mintlify"
}
Valid property names: x
, website
, facebook
, youtube
, discord
, slack
, github
, linkedin
, instagram
, hacker-news
, medium
, telegram
, twitter
, x-twitter
, earth-americas
, bluesky
, threads
, reddit
, podcast
Contextual menu for AI-optimized content and integrations.
Actions available in the contextual menu. The first option appears as the default.
copy
: Copy the current page as Markdown to the clipboard.view
: View the current page as Markdown in a new tab.chatgpt
: Send the current page content to ChatGPT.claude
: Send the current page content to Claude.
The contextual menu is only available on preview and production deployments.
API Configurations
API documentation and interactive playground settings.
Display settings for API parameters.
Whether to expand all parameters by default. Defaults to closed
.
Configurations for API pages generated from MDX
files.
SEO and search
SEO indexing configurations.
Meta tags added to every page. Must be a valid key-value pair. See common meta tags reference for options.
Specify which pages search engines should index. Choose navigable
to index only pages that are in your docs.json
navigation or choose all
to index every page. Defaults to navigable
.
Integrations
Third-party integrations.
Clearbit data enrichment integration.
Your Clearbit API key.
Front chat integration.
Your Front chat snippet ID.
Minimum length: 6
Google Analytics 4 integration.
Your Google Analytics 4 measurement ID.
Must match pattern: ^G
Google Tag Manager integration.
Your Google Tag Manager tag ID.
Must match pattern: ^G
Koala integration.
Your Koala public API key.
Minimum length: 2
Errors
Examples
{
"$schema": "https://mintlify.com/docs.json",
"theme": "maple",
"name": "Example Co.",
"description": "Example Co. is a company that provides example content and placeholder text.",
"colors": {
"primary": "#3B82F6",
"light": "#F8FAFC",
"dark": "#0F172A"
},
"navigation": {
"dropdowns": [
{
"dropdown": "Documentation",
"icon": "book",
"description": "How to use the Example Co. product",
"groups": [
{
"group": "Getting started",
"pages": [
"index",
"quickstart"
]
},
{
"group": "Customization",
"pages": [
"settings",
"users",
"features"
]
},
{
"group": "Billing",
"pages": [
"billing/overview",
"billing/payments",
"billing/subscriptions"
]
}
]
},
{
"dropdown": "Changelog",
"icon": "history",
"description": "Updates and changes",
"pages": [
"changelog"
]
}
]
},
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg",
"href": "https://example.com"
},
"navbar": {
"links": [
{
"label": "Community",
"href": "https://example.com/community"
}
],
"primary": {
"type": "button",
"label": "Get Started",
"href": "https://example.com/start"
}
},
"footer": {
"socials": {
"x": "https://x.com/example",
"linkedin": "https://www.linkedin.com/company/example",
"github": "https://github.com/example",
"slack": "https://example.com/community"
},
"links": [
{
"header": "Resources",
"items": [
{
"label": "Customers",
"href": "https://example.com/customers"
},
{
"label": "Enterprise",
"href": "https://example.com/enterprise"
},
{
"label": "Request Preview",
"href": "https://example.com/preview"
}
]
},
{
"header": "Company",
"items": [
{
"label": "Careers",
"href": "https://example.com/careers"
},
{
"label": "Blog",
"href": "https://example.com/blog"
},
{
"label": "Privacy Policy",
"href": "https://example.com/legal/privacy"
}
]
}
]
},
"integrations": {
"ga4": {
"measurementId": "G-XXXXXXXXXX"
},
"koala": {
"publicApiKey": "pk_example_key_123"
},
"telemetry": {
"enabled": true
},
"cookies": {
"key": "example_cookie_key",
"value": "example_cookie_value"
}
},
"contextual": {
"options": [
"copy",
"view",
"chatgpt",
"claude"
]
},
"errors": {
"404": {
"redirect": true
}
}
}
{
"$schema": "https://mintlify.com/docs.json",
"theme": "maple",
"name": "Example Co.",
"description": "Example Co. is a company that provides example content and placeholder text.",
"colors": {
"primary": "#3B82F6",
"light": "#F8FAFC",
"dark": "#0F172A"
},
"navigation": {
"dropdowns": [
{
"dropdown": "Documentation",
"icon": "book",
"description": "How to use the Example Co. product",
"groups": [
{
"group": "Getting started",
"pages": [
"index",
"quickstart"
]
},
{
"group": "Customization",
"pages": [
"settings",
"users",
"features"
]
},
{
"group": "Billing",
"pages": [
"billing/overview",
"billing/payments",
"billing/subscriptions"
]
}
]
},
{
"dropdown": "Changelog",
"icon": "history",
"description": "Updates and changes",
"pages": [
"changelog"
]
}
]
},
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg",
"href": "https://example.com"
},
"navbar": {
"links": [
{
"label": "Community",
"href": "https://example.com/community"
}
],
"primary": {
"type": "button",
"label": "Get Started",
"href": "https://example.com/start"
}
},
"footer": {
"socials": {
"x": "https://x.com/example",
"linkedin": "https://www.linkedin.com/company/example",
"github": "https://github.com/example",
"slack": "https://example.com/community"
},
"links": [
{
"header": "Resources",
"items": [
{
"label": "Customers",
"href": "https://example.com/customers"
},
{
"label": "Enterprise",
"href": "https://example.com/enterprise"
},
{
"label": "Request Preview",
"href": "https://example.com/preview"
}
]
},
{
"header": "Company",
"items": [
{
"label": "Careers",
"href": "https://example.com/careers"
},
{
"label": "Blog",
"href": "https://example.com/blog"
},
{
"label": "Privacy Policy",
"href": "https://example.com/legal/privacy"
}
]
}
]
},
"integrations": {
"ga4": {
"measurementId": "G-XXXXXXXXXX"
},
"koala": {
"publicApiKey": "pk_example_key_123"
},
"telemetry": {
"enabled": true
},
"cookies": {
"key": "example_cookie_key",
"value": "example_cookie_value"
}
},
"contextual": {
"options": [
"copy",
"view",
"chatgpt",
"claude"
]
},
"errors": {
"404": {
"redirect": true
}
}
}
{
"$schema": "https://mintlify.com/docs.json",
"theme": "maple",
"name": "Example Co.",
"description": "Example Co. is a company that provides example content and placeholder text.",
"colors": {
"primary": "#3B82F6",
"light": "#F8FAFC",
"dark": "#0F172A"
},
"navigation": {
"dropdowns": [
{
"dropdown": "Documentation",
"icon": "book",
"description": "How to use the Example Co. product",
"groups": [
{
"group": "Getting started",
"pages": [
"index",
"quickstart"
]
},
{
"group": "Customization",
"pages": [
"settings",
"users",
"features"
]
},
{
"group": "Billing",
"pages": [
"billing/overview",
"billing/payments",
"billing/subscriptions"
]
}
]
},
{
"dropdown": "API reference",
"icon": "terminal",
"description": "How to use the Example Co. API",
"groups": [
{
"group": "API reference",
"pages": [
"api-reference/introduction"
]
},
{
"group": "Endpoints",
"openapi": {
"source": "openapi.json"
}
}
]
},
{
"dropdown": "Changelog",
"icon": "history",
"description": "Updates and changes",
"pages": [
"changelog"
]
}
]
},
"api": {
"playground": {
"display": "interactive"
},
"examples": {
"languages": ["javascript", "curl", "python"]
}
},
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg",
"href": "https://example.com"
},
"navbar": {
"links": [
{
"label": "Community",
"href": "https://example.com/community"
}
],
"primary": {
"type": "button",
"label": "Get Started",
"href": "https://example.com/start"
}
},
"footer": {
"socials": {
"x": "https://x.com/example",
"linkedin": "https://www.linkedin.com/company/example",
"github": "https://github.com/example",
"slack": "https://example.com/community"
},
"links": [
{
"header": "Resources",
"items": [
{
"label": "Customers",
"href": "https://example.com/customers"
},
{
"label": "Enterprise",
"href": "https://example.com/enterprise"
},
{
"label": "Request Preview",
"href": "https://example.com/preview"
}
]
},
{
"header": "Company",
"items": [
{
"label": "Careers",
"href": "https://example.com/careers"
},
{
"label": "Blog",
"href": "https://example.com/blog"
},
{
"label": "Privacy Policy",
"href": "https://example.com/legal/privacy"
}
]
}
]
},
"integrations": {
"ga4": {
"measurementId": "G-XXXXXXXXXX"
},
"koala": {
"publicApiKey": "pk_example_key_123"
},
"telemetry": {
"enabled": true
},
"cookies": {
"key": "example_cookie_key",
"value": "example_cookie_value"
}
},
"contextual": {
"options": [
"copy",
"view",
"chatgpt",
"claude"
]
},
"errors": {
"404": {
"redirect": true
}
}
}
{
"$schema": "https://mintlify.com/docs.json",
"theme": "maple",
"name": "Example Co.",
"description": "Example Co. is a company that provides example content and placeholder text.",
"colors": {
"primary": "#3B82F6",
"light": "#F8FAFC",
"dark": "#0F172A"
},
"navigation": {
"global": {
"languages": [
{
"language": "en",
"default": true,
"href": "/en"
},
{
"language": "es",
"href": "/es"
},
{
"language": "pt-BR",
"href": "/pt-BR"
},
{
"language": "ko",
"href": "/ko"
}
],
"dropdowns": [
{
"dropdown": "Documentation",
"icon": "book",
"description": "How to use the Example Co. product",
"groups": [
{
"group": "Getting started",
"pages": [
"index",
"quickstart"
]
},
{
"group": "Customization",
"pages": [
"settings",
"users",
"features"
]
},
{
"group": "Billing",
"pages": [
"billing/overview",
"billing/payments",
"billing/subscriptions"
]
}
]
},
{
"dropdown": "Changelog",
"icon": "history",
"description": "Updates and changes",
"pages": [
"changelog"
]
}
]
}
},
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg",
"href": "https://example.com"
},
"navbar": {
"links": [
{
"label": "Community",
"href": "https://example.com/community"
}
],
"primary": {
"type": "button",
"label": "Get Started",
"href": "https://example.com/start"
}
},
"footer": {
"socials": {
"x": "https://x.com/example",
"linkedin": "https://www.linkedin.com/company/example",
"github": "https://github.com/example",
"slack": "https://example.com/community"
},
"links": [
{
"header": "Resources",
"items": [
{
"label": "Customers",
"href": "https://example.com/customers"
},
{
"label": "Enterprise",
"href": "https://example.com/enterprise"
},
{
"label": "Request Preview",
"href": "https://example.com/preview"
}
]
},
{
"header": "Company",
"items": [
{
"label": "Careers",
"href": "https://example.com/careers"
},
{
"label": "Blog",
"href": "https://example.com/blog"
},
{
"label": "Privacy Policy",
"href": "https://example.com/legal/privacy"
}
]
}
]
},
"integrations": {
"ga4": {
"measurementId": "G-XXXXXXXXXX"
},
"koala": {
"publicApiKey": "pk_example_key_123"
},
"telemetry": {
"enabled": true
},
"cookies": {
"key": "example_cookie_key",
"value": "example_cookie_value"
}
},
"contextual": {
"options": [
"copy",
"view",
"chatgpt",
"claude"
]
},
"errors": {
"404": {
"redirect": true
}
}
}
Was this page helpful?