mintlify 4.2.453 → 4.2.455

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.
Files changed (2) hide show
  1. package/README.md +175 -25
  2. 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
- ### Development
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 this command at the root of your Mintlify project to preview changes locally.
47
+ Run at the root of your Mintlify project to preview changes locally. Opens in the browser by default.
48
48
 
49
- Notes
49
+ ```
50
+ mintlify dev
51
+ ```
50
52
 
51
- - `mintlify dev` requires Node v19 or higher.
53
+ **Options**
52
54
 
53
- #### Custom Ports
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
- 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:
62
+ **Custom port**
56
63
 
57
64
  ```
58
65
  mintlify dev --port 3333
59
66
  ```
60
67
 
61
- You will see an error like this if you try to run Mintlify in a port that's already taken:
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
- Error: listen EADDRINUSE: address already in use :::3000
86
+ mintlify validate
65
87
  ```
66
88
 
67
- #### Troubleshooting
89
+ **Options**
68
90
 
69
- Steps you can take if the dev CLI is not working (After each step try to run `mintlify dev` again):
91
+ | Flag | Description |
92
+ |------|-------------|
93
+ | `--groups <group...>` | Mock user groups for validation |
94
+ | `--disable-openapi` | Disable OpenAPI file generation |
70
95
 
71
- - Make sure you are running in a folder with a `docs.json` file.
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
- ### Additional Commands
98
+ Check for broken internal links in your project.
77
99
 
78
- #### `mintlify broken-links`
100
+ ```
101
+ mintlify broken-links
102
+ ```
103
+
104
+ **Options**
79
105
 
80
- Check for broken internal links in your Mintlify project.
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 in a Mintlify project and update all internal link references.
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
- #### `mintlify openapi-check <openapiFilenameOrUrl>`
165
+ | Flag | Description |
166
+ |------|-------------|
167
+ | `--force` | Rename files and skip errors |
87
168
 
88
- Check your OpenAPI file for errors. You can pass in a filename (e.g. `./openapi.yaml`) or a URL (e.g. `https://petstore3.swagger.io/api/v3/openapi.json`).
169
+ #### `mintlify scrape <url>`
89
170
 
90
- #### `mintlify update`
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
- Updates to the most recent version of the Mintlify CLI.
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 from `mint.json` to `docs.json`. This command creates a `docs.json` from your existing `mint.json`.
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.453",
3
+ "version": "4.2.455",
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.1056"
33
+ "@mintlify/cli": "4.0.1058"
34
34
  },
35
35
  "devDependencies": {
36
36
  "rimraf": "5.0.1"
37
37
  },
38
- "gitHead": "87821bd4fd4fd84aea3932e8ae0928bd15dc3c28"
38
+ "gitHead": "449627f27a66da94b3f6a851601ac2524ad1b71a"
39
39
  }