mintlify 4.2.454 → 4.2.456
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +175 -25
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,66 +34,216 @@
|
|
|
34
34
|
|
|
35
35
|
### Installation
|
|
36
36
|
|
|
37
|
-
Download the Mintlify CLI using the following command
|
|
38
|
-
|
|
39
37
|
```
|
|
40
38
|
npm i -g mintlify
|
|
41
39
|
```
|
|
42
40
|
|
|
43
|
-
|
|
41
|
+
Requires Node 20.17 or higher. LTS versions recommended. Node 25+ is not supported.
|
|
42
|
+
|
|
43
|
+
### Local preview
|
|
44
44
|
|
|
45
45
|
#### `mintlify dev`
|
|
46
46
|
|
|
47
|
-
Run
|
|
47
|
+
Run at the root of your Mintlify project to preview changes locally. Opens in the browser by default.
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
```
|
|
50
|
+
mintlify dev
|
|
51
|
+
```
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
**Options**
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
| Flag | Description | Default |
|
|
56
|
+
|------|-------------|---------|
|
|
57
|
+
| `--port <number>` | Port to run the preview on | `3000` |
|
|
58
|
+
| `--no-open` | Skip opening the preview in the browser | — |
|
|
59
|
+
| `--groups <group...>` | Mock user groups for local testing | — |
|
|
60
|
+
| `--disable-openapi` | Disable OpenAPI file generation | — |
|
|
54
61
|
|
|
55
|
-
|
|
62
|
+
**Custom port**
|
|
56
63
|
|
|
57
64
|
```
|
|
58
65
|
mintlify dev --port 3333
|
|
59
66
|
```
|
|
60
67
|
|
|
61
|
-
|
|
68
|
+
If the specified port is already in use, the CLI automatically tries the next available port.
|
|
69
|
+
|
|
70
|
+
**Troubleshooting**
|
|
71
|
+
|
|
72
|
+
If `mintlify dev` is not working, try these steps in order:
|
|
73
|
+
|
|
74
|
+
1. Make sure you are running in a folder with a `docs.json` file.
|
|
75
|
+
2. Run `mintlify update` to get the latest version of the CLI.
|
|
76
|
+
3. Make sure you are using Node 20.17 or higher.
|
|
77
|
+
4. Delete the contents of the `.mintlify` folder in your home directory.
|
|
78
|
+
|
|
79
|
+
### Validate and check
|
|
80
|
+
|
|
81
|
+
#### `mintlify validate`
|
|
82
|
+
|
|
83
|
+
Validate the documentation build in strict mode. Exits with a non-zero code on any warning or error — useful in CI.
|
|
62
84
|
|
|
63
85
|
```
|
|
64
|
-
|
|
86
|
+
mintlify validate
|
|
65
87
|
```
|
|
66
88
|
|
|
67
|
-
|
|
89
|
+
**Options**
|
|
68
90
|
|
|
69
|
-
|
|
91
|
+
| Flag | Description |
|
|
92
|
+
|------|-------------|
|
|
93
|
+
| `--groups <group...>` | Mock user groups for validation |
|
|
94
|
+
| `--disable-openapi` | Disable OpenAPI file generation |
|
|
70
95
|
|
|
71
|
-
|
|
72
|
-
- Run `mintlify update` to ensure you have the most recent version of the CLI.
|
|
73
|
-
- Make sure you are using Node v19 or higher.
|
|
74
|
-
- Navigate to the `.mintlify` folder in your home directory and delete its contents.
|
|
96
|
+
#### `mintlify broken-links`
|
|
75
97
|
|
|
76
|
-
|
|
98
|
+
Check for broken internal links in your project.
|
|
77
99
|
|
|
78
|
-
|
|
100
|
+
```
|
|
101
|
+
mintlify broken-links
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Options**
|
|
79
105
|
|
|
80
|
-
|
|
106
|
+
| Flag | Description |
|
|
107
|
+
|------|-------------|
|
|
108
|
+
| `--check-anchors` | Also validate anchor links like `link-path#section` against heading slugs |
|
|
109
|
+
| `--check-external` | Also check external links for broken URLs |
|
|
110
|
+
| `--check-snippets` | Also check links inside `<Snippet>` components |
|
|
111
|
+
|
|
112
|
+
#### `mintlify openapi-check <filename>`
|
|
113
|
+
|
|
114
|
+
Check an OpenAPI spec for errors. Accepts a local file path or a URL.
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
mintlify openapi-check ./openapi.yaml
|
|
118
|
+
mintlify openapi-check https://petstore3.swagger.io/api/v3/openapi.json
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### `mintlify a11y`
|
|
122
|
+
|
|
123
|
+
Check for accessibility issues in your documentation. Also available as `mintlify accessibility`, `mintlify accessibility-check`, and `mintlify a11y-check`.
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
mintlify a11y
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Options**
|
|
130
|
+
|
|
131
|
+
| Flag | Description |
|
|
132
|
+
|------|-------------|
|
|
133
|
+
| `--skip-contrast` | Skip color contrast checks |
|
|
134
|
+
| `--skip-alt-text` | Skip alt text checks on images and videos |
|
|
135
|
+
|
|
136
|
+
### Create and manage content
|
|
137
|
+
|
|
138
|
+
#### `mintlify new [directory]`
|
|
139
|
+
|
|
140
|
+
Create a new Mintlify documentation site. Defaults to the current directory.
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
mintlify new
|
|
144
|
+
mintlify new my-docs
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Options**
|
|
148
|
+
|
|
149
|
+
| Flag | Description |
|
|
150
|
+
|------|-------------|
|
|
151
|
+
| `--theme <name>` | Theme for the documentation site |
|
|
152
|
+
| `--name <name>` | Name of the documentation project |
|
|
153
|
+
| `--force` | Initialize in a non-empty directory |
|
|
81
154
|
|
|
82
155
|
#### `mintlify rename <from> <to>`
|
|
83
156
|
|
|
84
|
-
Rename a file
|
|
157
|
+
Rename a file and update all internal references to it throughout the project.
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
mintlify rename introduction.mdx overview.mdx
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Options**
|
|
85
164
|
|
|
86
|
-
|
|
165
|
+
| Flag | Description |
|
|
166
|
+
|------|-------------|
|
|
167
|
+
| `--force` | Rename files and skip errors |
|
|
87
168
|
|
|
88
|
-
|
|
169
|
+
#### `mintlify scrape <url>`
|
|
89
170
|
|
|
90
|
-
|
|
171
|
+
Scrape an entire documentation site and convert it to Mintlify MDX files. Also available as `mintlify scrape site <url>`.
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
mintlify scrape https://example.com/docs
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Options**
|
|
178
|
+
|
|
179
|
+
| Flag | Description |
|
|
180
|
+
|------|-------------|
|
|
181
|
+
| `--filter <path>` | Only scrape URLs matching this path (e.g. `/docs` matches `/docs` and `/docs/*`) |
|
|
182
|
+
|
|
183
|
+
#### `mintlify scrape page <url>`
|
|
184
|
+
|
|
185
|
+
Scrape a single documentation page and convert it to an MDX file.
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
mintlify scrape page https://example.com/docs/introduction
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
#### `mintlify scrape openapi <location>`
|
|
192
|
+
|
|
193
|
+
Generate MDX files from an OpenAPI spec. Accepts a local file path or a URL.
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
mintlify scrape openapi ./openapi.yaml
|
|
197
|
+
mintlify scrape openapi https://petstore3.swagger.io/api/v3/openapi.json
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Options**
|
|
91
201
|
|
|
92
|
-
|
|
202
|
+
| Flag | Description | Default |
|
|
203
|
+
|------|-------------|---------|
|
|
204
|
+
| `--outDir <path>` | Folder to write the generated files | — |
|
|
205
|
+
| `--overwrite` | Overwrite existing files | `false` |
|
|
206
|
+
|
|
207
|
+
#### `mintlify migrate-mdx`
|
|
208
|
+
|
|
209
|
+
Migrate MDX OpenAPI endpoint pages to `x-mint` extensions and `docs.json`.
|
|
93
210
|
|
|
94
211
|
#### `mintlify upgrade`
|
|
95
212
|
|
|
96
|
-
Upgrade
|
|
213
|
+
Upgrade `mint.json` to `docs.json`. Creates a `docs.json` from your existing `mint.json`.
|
|
214
|
+
|
|
215
|
+
#### `mintlify workflow`
|
|
216
|
+
|
|
217
|
+
Add a workflow to your documentation repository.
|
|
218
|
+
|
|
219
|
+
### Export
|
|
220
|
+
|
|
221
|
+
#### `mintlify export`
|
|
222
|
+
|
|
223
|
+
Export a static site as a zip file for air-gapped deployment.
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
mintlify export
|
|
227
|
+
mintlify export --output docs.zip
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**Options**
|
|
231
|
+
|
|
232
|
+
| Flag | Description | Default |
|
|
233
|
+
|------|-------------|---------|
|
|
234
|
+
| `--output <path>` | Output zip file path | `export.zip` |
|
|
235
|
+
| `--groups <group...>` | Mock user groups for export | — |
|
|
236
|
+
| `--disable-openapi` | Disable OpenAPI file generation | — |
|
|
237
|
+
|
|
238
|
+
### CLI management
|
|
239
|
+
|
|
240
|
+
#### `mintlify update`
|
|
241
|
+
|
|
242
|
+
Update the CLI to the latest version.
|
|
243
|
+
|
|
244
|
+
#### `mintlify version`
|
|
245
|
+
|
|
246
|
+
Display the current version of the CLI and client. Also available as `mintlify v`.
|
|
97
247
|
|
|
98
248
|
### Get Started
|
|
99
249
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mintlify",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.456",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"clean:all": "rimraf node_modules"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@mintlify/cli": "4.0.
|
|
33
|
+
"@mintlify/cli": "4.0.1059"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"rimraf": "5.0.1"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d327501b9660b892208ba762806ced5713443565"
|
|
39
39
|
}
|