docs.json configuration, then hosts and deploys your docs automatically. This guide walks you through cloning the starter repo, previewing your changes locally, and going live.
Clone the starter repo
Start with the Mintlify starter template to get a working
docs.json and a set of example pages.Clone the repo to your machine
Clone the repo to your machine
Go to the mintlify/starter repository on GitHub and click Use this template to create a copy under your own account. Then clone it locally:If you’re new to cloning repositories, see GitHub’s guide on cloning.
Preview your docs locally
Preview your docs locally
Install the Mintlify CLI, then start the local preview server from your docs directory:Your docs site opens at http://localhost:3000. The preview updates automatically as you edit your MDX files.
The CLI requires Node.js v19 or later. Run
node -v to check your version.Update your site name and colors
Update your site name and colors
Open Save the file and the local preview will reflect your changes immediately. See Site settings for the full list of configuration options.
docs.json in your editor and update the name and colors fields to match your brand:Install the GitHub App
Mintlify deploys your docs automatically whenever you push to GitHub. To enable this, install the Mintlify GitHub App from your dashboard.
Connect your repository
Connect your repository
- Sign in at dashboard.mintlify.com.
- Click Add new project and select your docs repository.
- Follow the prompts to install the Mintlify GitHub App on that repository.
Push your changes and go live
Commit your changes and push to GitHub. Mintlify picks up the push, builds your docs, and publishes them — usually within seconds.Open your dashboard to see the deployment status. When the build succeeds, you’ll see a checks passed confirmation and a link to your live site.
Every push to the default branch triggers a new deployment. Pushes to other branches do not affect your live site.
Next steps
Markdown and MDX
Learn how to format text, add images, and use interactive components in your pages.
Site settings
Configure your logo, fonts, navigation, and more in
docs.json.Code blocks
Add syntax-highlighted code examples with copy buttons and line highlighting.
API reference
Auto-generate interactive API docs from an OpenAPI specification.