docs.json file to control your site’s information architecture and user experience. Modify the navbar, footer, banners, navigation behavior, contextual menus, redirects, and global content variables.
Settings
navigation - required
Type: object
The navigation structure of your content. This is where you define your site’s full page hierarchy using groups, tabs, dropdowns, anchors, and more.
See Navigation for complete documentation on building your navigation structure.
Global navigation elements that appear across all pages and locales.
Language switcher for multi-language sites. Each entry can include language-specific
banner, footer, and navbar configurations in addition to the navigation structure.Version switcher for sites with multiple versions.
Top-level navigation tabs.
Sidebar anchors.
Dropdowns for grouping related content.
Product switcher for sites with multiple products.
Groups for organizing content into sections.
Individual pages that make up your documentation.
Directory layout for group root pages. Set to
"accordion" or "card" to display a listing of child pages on group root pages. Set to "none" to disable. Inherits recursively; descendants can override. See Directory listings for more information.navbar
Type: object
Links and buttons displayed in the top navigation bar.
Links to display in the navbar.
Primary call-to-action button in the navbar.
docs.json
footer
Type: object
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.Valid keys:
x, website, facebook, youtube, discord, slack, github, linkedin, instagram, hacker-news, medium, telegram, twitter, x-twitter, earth-americas, bluesky, threads, reddit, podcastLink columns displayed in the footer. Maximum 4 columns.
docs.json
banner
Type: object
A site-wide banner displayed at the top of every page.
The text content displayed in the banner. Supports basic MDX formatting including links, bold, and italic text. Custom components are not supported.
Whether to show a dismiss button so users can close the banner. Defaults to
false.docs.json
interaction
Type: object
Controls user interaction behavior for navigation elements.
Controls automatic navigation when selecting a navigation group. Set to
true to automatically navigate to the first page when a group expands. Set to false to only expand or collapse the group without navigating. Leave unset to use the theme’s default behavior.contextual
Type: object
The contextual menu gives users quick access to AI tools and page actions. It appears in the page header or table of contents sidebar.
The contextual menu is only available on preview and production deployments.
Actions available in the contextual menu. The first option in the array appears as the default action.Built-in options:
"add-mcp"— Add your MCP server to the user’s configuration"aistudio"— Send the current page to Google AI Studio"assistant"— Open the AI assistant with the current page as context"copy"— Copy the current page as Markdown to the clipboard"chatgpt"— Send the current page to ChatGPT"claude"— Send the current page to Claude"cursor"— Install your hosted MCP server in Cursor"devin"— Send the current page to Devin"devin-mcp"— Install your hosted MCP server in Devin"grok"— Send the current page to Grok"mcp"— Copy your MCP server URL to the clipboard"perplexity"— Send the current page to Perplexity"view"— View the current page as Markdown in a new tab"vscode"— Install your hosted MCP server in VS Code"windsurf"— Send the current page to Windsurf
Where to display the contextual options. Choose
header to show them in the top-of-page context menu, or toc to show them in the table of contents sidebar. Defaults to header.docs.json
redirects
Type: array of object
Redirects for moved, renamed, or deleted pages. Use these to preserve links when you reorganize your content.
The path to redirect from. Example:
/old-pageThe path to redirect to. Example:
/new-pageIf
true, issues a permanent redirect (308). If false, issues a temporary redirect (307). Defaults to true.docs.json
errors
Type: object
Custom error page settings.
Settings for the 404 “Page not found” error page.
docs.json
variables
Type: object
Global variables for use throughout your documentation. Mintlify replaces {{variableName}} placeholders with the defined values at build time.
A key-value pair where the key is the variable name and the value is the replacement text.
- Variable names can contain alphanumeric characters and hyphens.
- You must define all variables referenced in your content or the build fails.
- Mintlify sanitizes values to prevent XSS attacks.
docs.json
metadata
Type: object
Page-level metadata settings applied globally.
Enable a last-modified date on all pages. When enabled, pages display the date the content was last modified. Defaults to
false.You can override this setting on individual pages using the timestamp frontmatter field. See Pages for details.docs.json