Overview
Navigation order is determined by (in priority order):_meta.yamlfiles in directories - Explicit ordering- Front matter
sidebarPosition- Per-file ordering - Default patterns - Common documentation conventions
Using _meta.yaml
Create a _meta.yaml file in any documentation directory to control the order of files and subdirectories.
Basic Usage
Key Points
- List items without file extensions (use
quickstartnotquickstart.md) - Directories are listed by name (same as files)
- Items not in the list appear after listed items, sorted by defaults
- The
orderkey contains an array of item names
Example Structure
_meta.yaml:
_meta.yaml:
Using Front Matter
For individual file ordering without creating_meta.yaml, use front matter:
sidebarPosition are sorted before files without it.
Supported Keys
sidebarPosition(Mintlify style)sidebar_position(Docusaurus style)
Default Ordering
When no metadata is provided, the system uses sensible defaults:Files (in order)
| Priority | Filenames |
|---|---|
| 0 | index |
| 1 | introduction |
| 2 | overview |
| 3 | quickstart |
| 4 | getting-started |
| 5 | setup |
| 6 | installation |
| 7 | configuration |
| 8 | usage |
| 50 | (other files - alphabetical) |
| 100 | upgrade |
| 101 | cli_tools, cli-tools |
| 200 | contributing |
| 201 | changelog |
Directories (in order)
| Priority | Directory Names |
|---|---|
| 1 | concepts |
| 2 | essentials |
| 3 | basics |
| 4 | getting-started |
| 10 | modes |
| 11 | streaming |
| 12 | embeddings |
| 20 | advanced |
| 21 | techniques |
| 30 | internals |
| 40 | troubleshooting |
| 50 | (other directories - alphabetical) |
| 100 | misc |
| 101 | reference |
Consistency Across Formats
The same_meta.yaml files and front matter work for both Mintlify and MkDocs output. You define the order once, and both documentation sites reflect it.
Best Practices
-
Use
_meta.yamlfor sections - When you have multiple files in a directory, create a_meta.yamlto ensure consistent ordering -
Start with defaults - The default ordering handles common patterns well; only add
_meta.yamlwhen you need specific ordering - List important items first - Put introductory content at the top of your order list
- Group related content - Use directories to group related pages, then order directories logically
- Keep unlisted items - You don’t need to list every file; unlisted items appear after listed ones
Troubleshooting
Order not applied
- Ensure
_meta.yamlis in the correct directory (same level as the files it orders) - Check YAML syntax is valid
- Verify item names match filenames exactly (without extension)
Mixed ordering
If some items are ordered and others aren’t:- Listed items appear first (in list order)
- Unlisted items appear after (sorted by defaults, then alphabetically)
Regenerate documentation
After changing_meta.yaml, regenerate: