.mdx or .md file types for your pages. We recommend MDX, which combines Markdown with React components for rich, interactive documentation. Plain Markdown (.md) can expedite migration from other platforms, but switching to MDX enables more features.
Page metadata
Every page begins with frontmatter, the YAML metadata enclosed by--- at the top of a file. This metadata controls how your page appears and behaves.
Use frontmatter to control:
- Page titles and descriptions
- Sidebar titles, icons, and tags
- Page layouts
- SEO meta tags
- Custom metadata
The title of your page that appears in navigation and browser tabs.
A brief description of what this page covers. Displays under the title and improves SEO.
A short title that displays in the sidebar navigation.
The icon to display.Options:
- Font Awesome icon name
- Lucide icon name
- Tabler icon name
- URL to an externally hosted icon
- Path to an icon file in your project
For Font Awesome icons only. The style of the icon.Options:
regular, solid, light, thin, sharp-solid, duotone, brands.A tag that appears next to your page title in the sidebar.
Set to
true to remove the page from the sidebar navigation. Users can still access the page via its URL, but search engines do not index it. See Hidden pages for details.Set to
true to prevent search engines from indexing the page. See Disable indexing for details. All pages with hidden: true in their frontmatter receive noindex: true automatically.Any valid YAML frontmatter. For example,
product: "API" or version: "1.0.0".Example YAML frontmatter
Page mode
Control your page’s layout with themode setting.
Default
If you do not define a mode, the page uses a standard layout with sidebar navigation and table of contents.Wide
Wide mode hides the table of contents. Use this mode for pages without headings or if you want extra horizontal space. Every theme supports wide mode.Custom
Custom mode provides a minimalist layout and removes all elements except for the top navbar. Treat custom mode as a blank canvas to build landing pages or unique layouts with minimal navigation. All themes support custom mode.Frame
Frame mode provides a layout similar to custom mode but keeps the sidebar navigation. Use this mode to include custom HTML and components while preserving the default navigation experience. Only Aspen and Almond themes support frame mode.Center
Center mode removes the sidebar and table of contents, and centers the content. Use center mode for changelogs or other pages where you want to place focus on the content. Mint and Linden themes support center mode.API pages
To create an interactive API playground, add an API specification to your frontmatter by settingapi or openapi.
External links
Link to external sites directly from your navigation with theurl metadata.
Search engine optimization
Mintlify automatically generates most SEO meta tags. You can set SEO meta tags manually to customize your approach to SEO, social sharing, and browser compatibility.Always wrap meta tags with colons in quotes.
Internal search keywords
Help users discover a specific page in search results by providingkeywords in your metadata. These keywords don’t appear in page content. If users search for the keywords, the page appears in the search results.
Last modified timestamp
Show a “Last modified on [date]” timestamp on all pages by enablingmetadata.timestamp in your global settings.
docs.json
timestamp frontmatter field. Use this field to show or hide timestamps on specific pages.
timestamp: true, the page always shows the timestamp even if the global setting is false. If you set timestamp: false, the page hides the timestamp even if the global setting is true.