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 autopropagate changes from youre 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** You should have installed Node.js (version 18.10.0 or
8
+
higher).
9
+
</Info>
10
+
11
+
Step 1. Install Mintlify on your OS:
12
+
13
+
<CodeGroup>
14
+
15
+
```bash npm
16
+
npm i -g mintlify
17
+
```
18
+
19
+
```bash yarn
20
+
yarn global add mintlify
21
+
```
22
+
23
+
</CodeGroup>
24
+
25
+
Step 2. Go to the docs are located (where you can find `mint.json`) and run the following command:
26
+
27
+
```bash
28
+
mintlify dev
29
+
```
30
+
31
+
The documentation website is now available at `http://localhost:3000`.
32
+
33
+
### Custom Ports
34
+
35
+
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:
36
+
37
+
```bash
38
+
mintlify dev --port 3333
39
+
```
40
+
41
+
You will see an error like this if you try to run Mintlify in a port that's already taken:
42
+
43
+
```md
44
+
Error: listen EADDRINUSE: address already in use :::3000
45
+
```
46
+
47
+
## Mintlify Versions
48
+
49
+
Each CLI is linked to a specific version of Mintlify. Please update the CLI if your local website looks different than production.
50
+
51
+
<CodeGroup>
52
+
53
+
```bash npm
54
+
npm i -g mintlify@latest
55
+
```
56
+
57
+
```bash yarn
58
+
yarn global upgrade mintlify
59
+
```
60
+
61
+
</CodeGroup>
62
+
63
+
## Deployment
64
+
65
+
<Tip>
66
+
Unlimited editors available under the [Startup
67
+
Plan](https://mintlify.com/pricing)
68
+
</Tip>
69
+
70
+
You should see the following if the deploy successfully went through:
0 commit comments