documentation
Guide to running and modifying documentation locally
Prerequisites
Install Node.js
Install Node.js
- Download and install Node.js
- Recommended version: 16.x or higher
Install Git
Install Git
- Install Git for version control
- Required for cloning the repository
Getting Started
1
Install Mintlify CLI
Install the Mintlify CLI globally using npm:
2
Clone the Repository
Clone your documentation repository:
3
Start Development Server
Run the development server in your documentation root:
The documentation will be available at http://localhost:3000
Making Changes
Edit Content
Edit Content
- Modify
.mdx
files in your repository - Changes will hot-reload in the browser
- Use Markdown and MDX components
Add Images
Add Images
- Place images in the
/images
directory - Reference them using relative paths:
Update Navigation
Update Navigation
Troubleshooting
Common issues and solutions:
- If
mintlify dev
fails, trymintlify install
to reinstall dependencies - Ensure you’re in the correct directory with
mint.json
- Clear your browser cache if changes aren’t reflecting
Always commit your changes to version control:
Deployment
Changes will automatically deploy when pushed to your default branch if you have configured the Mintlify GitHub App.
For optimal deployment:
- Test all changes locally first
- Ensure all images and links work
- Verify navigation structure