|
| 1 | +# Mintlify documentation |
| 2 | + |
| 3 | +## Working relationship |
| 4 | +- You can push back on ideas-this can lead to better documentation. Cite sources and explain your reasoning when you do so |
| 5 | +- ALWAYS ask for clarification rather than making assumptions |
| 6 | +- NEVER lie, guess, or make up information |
| 7 | + |
| 8 | +## Project context |
| 9 | +- Format: MDX files with YAML frontmatter |
| 10 | +- Config: docs.json for navigation, theme, settings |
| 11 | +- Components: Mintlify components |
| 12 | + |
| 13 | +## Content strategy |
| 14 | +- Document just enough for user success - not too much, not too little |
| 15 | +- Prioritize accuracy and usability of information |
| 16 | +- Make content evergreen when possible |
| 17 | +- Search for existing information before adding new content. Avoid duplication unless it is done for a strategic reason |
| 18 | +- Check existing patterns for consistency |
| 19 | +- Start by making the smallest reasonable changes |
| 20 | + |
| 21 | +## Frontmatter requirements for pages |
| 22 | +- title: Clear, descriptive page title |
| 23 | +- description: Concise summary for SEO/navigation |
| 24 | + |
| 25 | +## Writing standards |
| 26 | +- Second-person voice ("you") |
| 27 | +- Prerequisites at start of procedural content |
| 28 | +- Test all code examples before publishing |
| 29 | +- Match style and formatting of existing pages |
| 30 | +- Include both basic and advanced use cases |
| 31 | +- Language tags on all code blocks |
| 32 | +- Alt text on all images |
| 33 | +- Relative paths for internal links |
| 34 | +- Use broadly applicable examples rather than overly specific business cases |
| 35 | +- Lead with context when helpful - explain what something is before diving into implementation details |
| 36 | + |
| 37 | +### Style preferences (learned from content refresh project) |
| 38 | +#### Headings and formatting |
| 39 | +- Use sentence case for all headings ("Getting started", not "Getting Started") |
| 40 | +- Use "Properties" instead of "Props" for component documentation |
| 41 | +- Use sentence case for code block titles ("Expandable example", not "Expandable Example") |
| 42 | + |
| 43 | +#### Component introductions |
| 44 | +- Start with action-oriented language: "Use [component] to..." rather than "The [component] component..." |
| 45 | +- Be specific about what components can contain or do |
| 46 | +- Make introductions practical and user-focused |
| 47 | + |
| 48 | +#### Property descriptions |
| 49 | +- End all property descriptions with periods for consistency |
| 50 | +- Be specific and helpful rather than generic |
| 51 | +- Add scope clarification where needed (e.g., "For Font Awesome icons only:") |
| 52 | +- Use proper technical terminology ("boolean" not "bool") |
| 53 | + |
| 54 | +#### Language and tone |
| 55 | +- Prefer active voice and direct language |
| 56 | +- Remove unnecessary words while maintaining clarity |
| 57 | +- Use "you complete" over "completing" for more direct communication |
| 58 | +- Break complex instructions into clear numbered steps |
| 59 | +- Make language more precise and contextual |
| 60 | + |
| 61 | +#### Code examples |
| 62 | +- Keep examples simple and practical |
| 63 | +- Use consistent formatting and naming |
| 64 | +- Provide clear, actionable examples rather than showing multiple options when one will do |
| 65 | + |
| 66 | +#### Content organization |
| 67 | +- Structure content in the order users need it |
| 68 | +- Combine related information to reduce redundancy |
| 69 | +- Use specific links (direct to relevant pages rather than generic dashboards) |
| 70 | +- Put most commonly needed information first |
| 71 | + |
| 72 | +## Git workflow |
| 73 | +- NEVER use --no-verify when committing |
| 74 | +- Ask how to handle uncommitted changes before starting |
| 75 | +- Create a new branch when no clear branch exists for changes |
| 76 | +- Commit frequently throughout development |
| 77 | +- NEVER skip or disable pre-commit hooks |
| 78 | + |
| 79 | +## Do not |
| 80 | +- Skip frontmatter on any MDX file |
| 81 | +- Use absolute URLs for internal links |
| 82 | +- Include untested code examples |
| 83 | +- Make assumptions - always ask for clarification |
0 commit comments