Get started in three steps
Get your documentation site running locally and make your first customization.Step 1: Set up your local environment
Clone your docs locally
Clone your docs locally
During the onboarding process, you created a GitHub repository with your docs content if you didn’t already have one. You can find a link to this repository in your dashboard.To clone the repository locally so that you can make and preview changes to your docs, follow the Cloning a repository guide in the GitHub docs.
Start the preview server
Start the preview server
- Install the Mintlify CLI:
npm i -g mint - Navigate to your docs directory and run:
mint dev - Open
http://localhost:3000to see your docs live!
Step 2: Deploy your changes
Install our GitHub app
Install our GitHub app
Install the Mintlify GitHub app from your dashboard.Our GitHub app automatically deploys your changes to your docs site, so you don’t need to manage deployments yourself.
Update your site name and colors
Update your site name and colors
For a first change, let’s update the name and colors of your docs site.
- Open
docs.jsonin your editor. - Change the
"name"field to your project name. - Update the
"colors"to match your brand. - Save and see your changes instantly at
http://localhost:3000.
Step 3: Go live
Publish your docs
Publish your docs
- Commit and push your changes.
- Your docs will update and be live in moments!
Next steps
Now that you have your docs running, explore these key features:Write Content
Learn MDX syntax and start writing your documentation.
Customize style
Make your docs match your brand perfectly.
Add code examples
Include syntax-highlighted code blocks.
API documentation
Auto-generate API docs from OpenAPI specs.
Need help? See our full documentation or join our community.
Titles
Best used for section headers.Subtitles
Best used for subsection headers.Text formatting
We support most markdown formatting. Simply add**, _, or ~ around text to format it.
| Style | How to write it | Result |
|---|---|---|
| Bold | **bold** | bold |
| Italic | _italic_ | italic |
| Strikethrough | ~strikethrough~ |
**_bold and italic_** to get bold and italic text.
You need to use HTML to write superscript and subscript text. That is, add <sup> or <sub> around your text.
| Text Size | How to write it | Result |
|---|---|---|
| Superscript | <sup>superscript</sup> | superscript |
| Subscript | <sub>subscript</sub> | subscript |
Linking to pages
You can add a link by wrapping text in[](). You would write [link to google](https://google.com) to link to google.
Links to pages in your docs need to be root-relative. Basically, you should include the entire folder path. For example, [link to text](/writing-content/text) links to the page “Text” in our components section.
Relative links like [link to text](../text) will open slower because we cannot optimize them as easily.
Blockquotes
Singleline
To create a blockquote, add a> in front of a paragraph.
Dorothy followed her through many of the beautiful rooms in her castle.
Multiline
Dorothy followed her through many of the beautiful rooms in her castle. The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
LaTeX
Mintlify supports LaTeX through the Latex component. 8 x (vk x H1 - H2) = (0,1)docs.json every time you add a new page. Pages do not show up automatically.
Navigation syntax
Our navigation syntax is recursive which means you can make nested navigation groups. You don’t need to include.mdx in page names.
Folders
Simply put your MDX files in folders and update the paths indocs.json.
For example, to have a page at https://yoursite.com/your-folder/your-page you would make a folder called your-folder containing an MDX file called your-page.mdx.
Navigation With Folder
Hidden pages
MDX files not included indocs.json will not show up in the sidebar but are accessible through the search bar and by linking directly to them.
Endpoint
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | number | No | Maximum number of items to return |
| offset | number | No | Number of items to skip |
Response
If you’re not looking to build API reference documentation, you can delete
this section by removing the api-reference folder.