@mintlify/cli 4.0.1053 → 4.0.1054
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/bin/cli.js +7 -7
- package/bin/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/cli.tsx +7 -7
package/bin/cli.js
CHANGED
|
@@ -119,7 +119,7 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
119
119
|
yield validateBuild(Object.assign(Object.assign({}, argv), { packageName,
|
|
120
120
|
cliVersion }));
|
|
121
121
|
}))
|
|
122
|
-
.command('openapi-check <filename>', 'check if an
|
|
122
|
+
.command('openapi-check <filename>', 'check if an openapi spec is valid', (yargs) => yargs
|
|
123
123
|
.positional('filename', {
|
|
124
124
|
describe: 'the filename of the OpenAPI spec (e.g. ./openapi.yaml) or the URL to the OpenAPI spec (e.g. https://petstore3.swagger.io/api/v3/openapi.json)',
|
|
125
125
|
type: 'string',
|
|
@@ -264,7 +264,7 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
264
264
|
}
|
|
265
265
|
yield upgradeConfig();
|
|
266
266
|
}))
|
|
267
|
-
.command('migrate-mdx', 'migrate
|
|
267
|
+
.command('migrate-mdx', 'migrate mdx openapi endpoint pages to x-mint extensions and docs.json', () => undefined, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
268
268
|
yield migrateMdx();
|
|
269
269
|
yield terminate(0);
|
|
270
270
|
}))
|
|
@@ -298,12 +298,12 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
298
298
|
}
|
|
299
299
|
yield terminate(accessibilityCheckTerminateCode || mdxLinterTerminateCode);
|
|
300
300
|
}))
|
|
301
|
-
.command(['version', 'v'], 'display the current version of the
|
|
301
|
+
.command(['version', 'v'], 'display the current version of the cli and client', () => undefined, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
302
302
|
const { cli, client } = getVersions();
|
|
303
303
|
addLog(_jsxs(Text, { children: [_jsx(Text, { bold: true, color: "green", children: "cli version" }), ' ', cli] }));
|
|
304
304
|
addLog(_jsxs(Text, { children: [_jsx(Text, { bold: true, color: "green", children: "client version" }), ' ', client] }));
|
|
305
305
|
}))
|
|
306
|
-
.command('new [directory]', 'create a new
|
|
306
|
+
.command('new [directory]', 'create a new mintlify documentation site', (yargs) => yargs
|
|
307
307
|
.positional('directory', {
|
|
308
308
|
describe: 'The directory to initialize your documentation',
|
|
309
309
|
type: 'string',
|
|
@@ -342,7 +342,7 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
342
342
|
}
|
|
343
343
|
}))
|
|
344
344
|
.command('scrape', 'scrape documentation from external sites', (yargs) => yargs
|
|
345
|
-
.command(['$0 <url>', 'site <url>'], '
|
|
345
|
+
.command(['$0 <url>', 'site <url>'], 'scrape an entire documentation site', (yargs) => yargs
|
|
346
346
|
.positional('url', {
|
|
347
347
|
describe: 'The URL of the documentation site to scrape',
|
|
348
348
|
type: 'string',
|
|
@@ -356,7 +356,7 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
356
356
|
.check(checkUrl), (_a) => __awaiter(void 0, [_a], void 0, function* ({ url, filter }) {
|
|
357
357
|
yield scrapeSite(url, filter);
|
|
358
358
|
}))
|
|
359
|
-
.command('page <url>', '
|
|
359
|
+
.command('page <url>', 'scrape a single documentation page', (yargs) => yargs
|
|
360
360
|
.positional('url', {
|
|
361
361
|
describe: 'The URL of the documentation page to scrape',
|
|
362
362
|
type: 'string',
|
|
@@ -365,7 +365,7 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
365
365
|
.check(checkUrl), (_a) => __awaiter(void 0, [_a], void 0, function* ({ url }) {
|
|
366
366
|
yield scrapePage(url);
|
|
367
367
|
}))
|
|
368
|
-
.command('openapi <openapiLocation>', '
|
|
368
|
+
.command('openapi <openapiLocation>', 'generate mdx files from an openapi spec', (yargs) => yargs
|
|
369
369
|
.positional('openapiLocation', {
|
|
370
370
|
describe: 'The filename or URL location of the OpenAPI spec',
|
|
371
371
|
type: 'string',
|