Docs architecture
Where new docs go
| Content type | Folder |
|---|---|
| Onboarding, first-run | getting-started/ |
| Design decisions, system behavior | concepts/ |
| Task recipes, how-to | guides/ |
| Flags, options, schemas | reference/ or cli/ |
| Contributor process | development/ |
Page frontmatter template
- One concise opening paragraph
- Primary workflow (
<Steps>when procedural) - Supporting sections (
<AccordionGroup>, tables, or examples) - Short checklist or “next steps” links
Mintlify components used in this project
| Need | Component |
|---|---|
| Sequential steps | <Steps> |
| Platform / shell variants | <Tabs> |
| Navigation hubs | <CardGroup> + <Card> |
| Dense details, troubleshooting | <AccordionGroup> + <Accordion> |
| API parameters | <ParamField> |
| High-signal caveats | <Note>, <Tip>, <Warning>, <Info> |
| Code in multiple languages | <CodeGroup> |
bash, json, python, text).
Creating a new page
Write frontmatter and content
Add
title, sidebarTitle, description, and icon. Draft content using existing component patterns.Register in navigation
Add the page path (without
.mdx) to the right group in docs/docs.json under navigation.tabs.Add cross-links
Link to at least one related page from the same section and one from an adjacent section.
Navigation design rules
- Keep section depth shallow
- Keep group names task-oriented
- Prefer one clear home for each page — avoid duplicating a page across multiple groups
- Keep top-level tabs stable (major user intent only)
- When reorganizing, update internal links that reference moved pages
Content quality checklist
- Frontmatter is complete and accurate
- Title and description match the actual content
- Commands are copy/paste-ready
- Output examples match current behavior
- Links are valid and not circular
- Warnings are used only for real risk
- No sensitive values (keys/tokens) appear in examples
Reusable content
If the same warning, setup snippet, or explanation appears on 2+ pages, make it a reusable snippet and import it. This avoids drift and reduces maintenance.PR checklist for docs changes
- Page is in the right section folder.
- Page is included in
docs/docs.jsonnavigation. - Commands and examples were sanity-checked.
mint broken-linkspasses.mint a11ypasses.- Cross-links to related docs were added.
- Any moved/renamed page has redirects or updated references.
Common mistakes
Page registered but not appearing
Page registered but not appearing
Check that the path in
docs/docs.json exactly matches the file path without the .mdx extension.Mixing content types on one page
Mixing content types on one page
Concepts, task guides, and reference should each be on their own page. Split rather than blend.
Output examples don't match CLI behavior
Output examples don't match CLI behavior
Always run the command and copy real output. Don’t write examples from memory.
Using .mintignore for hidden pages
Using .mintignore for hidden pages