navigation field in your docs.json file.
You will likely update
docs.json every time you add a new page. Pages do not show up automatically in the navigation.Navigation syntax
Our navigation syntax is recursive which means you can make nested navigation groups. This allows you to create sophisticated multi-level navigation structures that scale with your documentation.You don’t need to include
.mdx in page names when referencing them in docs.json.Basic navigation structure
Here’s a simple navigation configuration with a single tab and group:Navigation hierarchy
Mintlify’s navigation follows this structure:- Tabs - Top-level sections (e.g., “Docs”, “API Reference”, “Guides”)
- Groups - Categories within tabs (e.g., “Getting Started”, “Advanced”)
- Pages - Individual documentation pages or nested groups
Folders
Simply put your MDX files in folders and update the paths indocs.json. Mintlify automatically maps your folder structure to URL paths.
For example, to have a page at https://yoursite.com/your-folder/your-page you would:
- Make a folder called
your-folder - Create an MDX file called
your-page.mdxinside that folder - Reference it in
docs.jsonas"your-folder/your-page"
Example with folders
Navigation With Folder
Hidden pages
MDX files not included indocs.json will not show up in the sidebar but are accessible through the search bar and by linking directly to them.
This is useful for:
- Draft pages you’re still working on
- Landing pages that shouldn’t appear in navigation
- Specialized pages accessed only through direct links
- Archived content that should remain searchable
Multi-tab navigation
For larger documentation sites, you can organize content into multiple tabs. Each tab can have its own set of groups and pages:Tabs appear horizontally at the top of your navigation sidebar, making it easy for users to switch between major sections of your documentation.
Complex navigation example
Here’s a comprehensive example showing multiple tabs, nested groups, and folder organization:Best practices
Troubleshooting
Page not showing in navigation
If your page isn’t appearing in the navigation:- Verify the page path in
docs.jsonmatches your file structure exactly - Make sure you didn’t include the
.mdxextension - Check that the MDX file exists at the specified path
- Restart your dev server with
mint dev
Navigation not updating
Changes todocs.json require restarting your development server. After modifying navigation:
Run
mint dev to preview your navigation changes locally before deploying.