Prerequisite: You should have installed Node.js
(version 20 or higher) and cloned the Tuturuuu
Monorepo to your local machine.
apps/docs) and run the following command:
http://localhost:3000.
Custom Ports
Mintlify uses port 3000 by default. You can use the--port flag to customize the port Mintlify runs on. For example, use this command to run in port 3333:
Mintlify Versions
Each CLI is linked to a specific version of Mintlify. Please update the CLI if your local website looks different than production.Writing Documentation
File Structure
Each documentation file should follow this structure:Content Guidelines
- Use clear headings to structure your content
- Include code examples with proper syntax highlighting
- Add cross-references to related documentation
- Keep content up-to-date by updating the
updatedAtfield - Use consistent formatting throughout
Code Examples
When including code examples:- Use proper syntax highlighting
- Include TypeScript types
- Show both server and client examples
- Include error handling
- Test examples before committing
Images and Assets
- Store images in the
images/directory - Use descriptive filenames
- Optimize images for web
- Include alt text for accessibility
Contributing
Before You Start
- Check if documentation already exists
- Look for similar patterns in existing docs
- Follow the established structure
- Read the Organization Guide for structure
Making Changes
- Create a branch for your documentation changes
- Write clear, concise content that’s easy to understand
- Include practical examples that developers can use
- Update related documentation if needed
- Test your changes locally with
mintlify dev
Review Process
- Self-review your changes for clarity and accuracy
- Check links to ensure they work correctly
- Verify code examples are correct and complete
- Update the table of contents if adding new sections
- Submit a pull request with a clear description
Best Practices
Writing Style
- Be concise but comprehensive
- Use active voice when possible
- Write for your audience (developers)
- Include context for complex topics
- Use consistent terminology throughout
Organization
- Group related content together
- Use clear section headings
- Include a table of contents for long pages
- Cross-reference related documentation
- Keep examples practical and realistic
Maintenance
- Update documentation when APIs change
- Remove outdated information promptly
- Keep examples current with latest versions
- Review documentation regularly for accuracy
- Ask for feedback from other developers