You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including
4
+
5
+
- Guide pages
6
+
- Navigation
7
+
- Customizations
8
+
- API Reference pages
9
+
- Use of popular components
10
+
11
+
### Development
12
+
13
+
Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command
14
+
15
+
```
16
+
npm i -g mintlify
17
+
```
18
+
19
+
Run the following command at the root of your documentation (where mint.json is)
20
+
21
+
```
22
+
mintlify dev
23
+
```
24
+
25
+
### Publishing Changes
26
+
27
+
Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
28
+
29
+
#### Troubleshooting
30
+
31
+
- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
32
+
- Page loads as a 404 - Make sure you are running in a folder with `mint.json`
description: 'Example section for showcasing API endpoints'
4
+
---
5
+
6
+
<Note>
7
+
If you're not looking to build API reference documentation, you can delete
8
+
this section by removing the api-reference folder.
9
+
</Note>
10
+
11
+
## Welcome
12
+
13
+
There are two ways to build API documentation: [OpenAPI](https://mintlify.com/docs/api-playground/openapi/setup) and [MDX components](https://mintlify.com/docs/api-playground/mdx/configuration). For the starter kit, we are using the following OpenAPI specification.
description: 'Learn how to preview changes locally'
4
+
---
5
+
6
+
<Info>
7
+
**Prerequisite**: Please install Node.js (version 19 or higher) before proceeding.
8
+
</Info>
9
+
10
+
Step 1. Install Mintlify on your OS:
11
+
12
+
<CodeGroup>
13
+
14
+
```bash npm
15
+
npm i -g mintlify
16
+
```
17
+
18
+
```bash yarn
19
+
yarn global add mintlify
20
+
```
21
+
22
+
</CodeGroup>
23
+
24
+
Step 2. Go to the docs are located (where you can find `mint.json`) and run the following command:
25
+
26
+
```bash
27
+
mintlify dev
28
+
```
29
+
30
+
The documentation website is now available at `http://localhost:3000`.
31
+
32
+
### Custom Ports
33
+
34
+
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:
35
+
36
+
```bash
37
+
mintlify dev --port 3333
38
+
```
39
+
40
+
You will see an error like this if you try to run Mintlify in a port that's already taken:
41
+
42
+
```md
43
+
Error: listen EADDRINUSE: address already in use :::3000
44
+
```
45
+
46
+
## Mintlify Versions
47
+
48
+
Each CLI is linked to a specific version of Mintlify. Please update the CLI if your local website looks different than production.
49
+
50
+
<CodeGroup>
51
+
52
+
```bash npm
53
+
npm i -g mintlify@latest
54
+
```
55
+
56
+
```bash yarn
57
+
yarn global upgrade mintlify
58
+
```
59
+
60
+
</CodeGroup>
61
+
62
+
## Deployment
63
+
64
+
<Tip>
65
+
Unlimited editors available under the [Pro
66
+
Plan](https://mintlify.com/pricing) and above.
67
+
</Tip>
68
+
69
+
You should see the following if the deploy successfully went through:
0 commit comments