mint 4.2.454 → 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 Mint CLI using the following command
38
-
39
37
  ```
40
38
  npm i -g mint
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
  #### `mint 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
+ mint dev
51
+ ```
50
52
 
51
- - `mint 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
  mint 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 `mint 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 `mint 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
+ #### `mint 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
+ mint 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 `mint 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 `mint 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
+ #### `mint broken-links`
75
97
 
76
- ### Additional Commands
98
+ Check for broken internal links in your project.
77
99
 
78
- #### `mint broken-links`
100
+ ```
101
+ mint 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
+ #### `mint openapi-check <filename>`
113
+
114
+ Check an OpenAPI spec for errors. Accepts a local file path or a URL.
115
+
116
+ ```
117
+ mint openapi-check ./openapi.yaml
118
+ mint openapi-check https://petstore3.swagger.io/api/v3/openapi.json
119
+ ```
120
+
121
+ #### `mint a11y`
122
+
123
+ Check for accessibility issues in your documentation. Also available as `mint accessibility`, `mint accessibility-check`, and `mint a11y-check`.
124
+
125
+ ```
126
+ mint 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
+ #### `mint new [directory]`
139
+
140
+ Create a new Mintlify documentation site. Defaults to the current directory.
141
+
142
+ ```
143
+ mint new
144
+ mint 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
  #### `mint 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
+ mint rename introduction.mdx overview.mdx
161
+ ```
162
+
163
+ **Options**
85
164
 
86
- #### `mint 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
+ #### `mint scrape <url>`
89
170
 
90
- #### `mint update`
171
+ Scrape an entire documentation site and convert it to Mintlify MDX files. Also available as `mint scrape site <url>`.
172
+
173
+ ```
174
+ mint 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
+ #### `mint scrape page <url>`
184
+
185
+ Scrape a single documentation page and convert it to an MDX file.
186
+
187
+ ```
188
+ mint scrape page https://example.com/docs/introduction
189
+ ```
190
+
191
+ #### `mint scrape openapi <location>`
192
+
193
+ Generate MDX files from an OpenAPI spec. Accepts a local file path or a URL.
194
+
195
+ ```
196
+ mint scrape openapi ./openapi.yaml
197
+ mint 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 Mint CLI.
202
+ | Flag | Description | Default |
203
+ |------|-------------|---------|
204
+ | `--outDir <path>` | Folder to write the generated files | — |
205
+ | `--overwrite` | Overwrite existing files | `false` |
206
+
207
+ #### `mint migrate-mdx`
208
+
209
+ Migrate MDX OpenAPI endpoint pages to `x-mint` extensions and `docs.json`.
93
210
 
94
211
  #### `mint 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
+ #### `mint workflow`
216
+
217
+ Add a workflow to your documentation repository.
218
+
219
+ ### Export
220
+
221
+ #### `mint export`
222
+
223
+ Export a static site as a zip file for air-gapped deployment.
224
+
225
+ ```
226
+ mint export
227
+ mint 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
+ #### `mint update`
241
+
242
+ Update the CLI to the latest version.
243
+
244
+ #### `mint version`
245
+
246
+ Display the current version of the CLI and client. Also available as `mint v`.
97
247
 
98
248
  ### Get Started
99
249
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mint",
3
- "version": "4.2.454",
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.1057"
33
+ "@mintlify/cli": "4.0.1058"
34
34
  },
35
35
  "devDependencies": {
36
36
  "rimraf": "5.0.1"
37
37
  },
38
- "gitHead": "689313194fd46d5dd2211b59062a041ba91f3981"
38
+ "gitHead": "449627f27a66da94b3f6a851601ac2524ad1b71a"
39
39
  }