@mintlify/cli 4.0.1687 → 4.0.1688
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 +6 -1
- package/bin/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/cli.tsx +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1688",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@inquirer/prompts": "7.9.0",
|
|
48
|
-
"@mintlify/common": "1.0.
|
|
49
|
-
"@mintlify/link-rot": "3.0.
|
|
48
|
+
"@mintlify/common": "1.0.1279",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1501",
|
|
50
50
|
"@mintlify/models": "0.0.376",
|
|
51
|
-
"@mintlify/og": "0.0.
|
|
52
|
-
"@mintlify/prebuild": "1.0.
|
|
53
|
-
"@mintlify/previewing": "4.0.
|
|
51
|
+
"@mintlify/og": "0.0.77",
|
|
52
|
+
"@mintlify/prebuild": "1.0.1444",
|
|
53
|
+
"@mintlify/previewing": "4.0.1521",
|
|
54
54
|
"@mintlify/validation": "0.1.933",
|
|
55
55
|
"adm-zip": "0.6.0",
|
|
56
56
|
"chalk": "5.2.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"keytar": "7.9.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@mintlify/editor": "0.0.
|
|
85
|
+
"@mintlify/editor": "0.0.542",
|
|
86
86
|
"@mintlify/ts-config": "2.0.2",
|
|
87
87
|
"@tsconfig/recommended": "1.0.2",
|
|
88
88
|
"@types/detect-port": "1.3.2",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"vitest": "2.1.9",
|
|
102
102
|
"vitest-mock-process": "1.0.4"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "0c8c981dc0a4e1158ac9368d4bda1aa688880efa"
|
|
105
105
|
}
|
package/src/cli.tsx
CHANGED
|
@@ -287,6 +287,10 @@ export const cli = ({ packageName = 'mint' }: { packageName?: string }) => {
|
|
|
287
287
|
type: 'array',
|
|
288
288
|
description: 'Mock user groups for export',
|
|
289
289
|
})
|
|
290
|
+
.option('base-path', {
|
|
291
|
+
type: 'string',
|
|
292
|
+
description: 'path prefix the export will be served under, e.g. /docs',
|
|
293
|
+
})
|
|
290
294
|
.option('disable-openapi', {
|
|
291
295
|
type: 'boolean',
|
|
292
296
|
default: false,
|
|
@@ -294,7 +298,8 @@ export const cli = ({ packageName = 'mint' }: { packageName?: string }) => {
|
|
|
294
298
|
})
|
|
295
299
|
.usage('usage: mintlify export [options]')
|
|
296
300
|
.example('mintlify export', 'export as export.zip')
|
|
297
|
-
.example('mintlify export --output docs.zip', 'export to custom filename')
|
|
301
|
+
.example('mintlify export --output docs.zip', 'export to custom filename')
|
|
302
|
+
.example('mintlify export --base-path /docs', 'export for hosting under /docs'),
|
|
298
303
|
async (argv) => {
|
|
299
304
|
const { cli: cliVersion } = getVersions(packageName);
|
|
300
305
|
await exportSite({
|