@mintlify/cli 4.0.1686 → 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 +9 -9
- package/src/cli.tsx +6 -1
package/bin/cli.js
CHANGED
|
@@ -231,6 +231,10 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
231
231
|
.option('groups', {
|
|
232
232
|
type: 'array',
|
|
233
233
|
description: 'Mock user groups for export',
|
|
234
|
+
})
|
|
235
|
+
.option('base-path', {
|
|
236
|
+
type: 'string',
|
|
237
|
+
description: 'path prefix the export will be served under, e.g. /docs',
|
|
234
238
|
})
|
|
235
239
|
.option('disable-openapi', {
|
|
236
240
|
type: 'boolean',
|
|
@@ -239,7 +243,8 @@ export const cli = ({ packageName = 'mint' }) => {
|
|
|
239
243
|
})
|
|
240
244
|
.usage('usage: mintlify export [options]')
|
|
241
245
|
.example('mintlify export', 'export as export.zip')
|
|
242
|
-
.example('mintlify export --output docs.zip', 'export to custom filename')
|
|
246
|
+
.example('mintlify export --output docs.zip', 'export to custom filename')
|
|
247
|
+
.example('mintlify export --base-path /docs', 'export for hosting under /docs'), (argv) => __awaiter(void 0, void 0, void 0, function* () {
|
|
243
248
|
const { cli: cliVersion } = getVersions(packageName);
|
|
244
249
|
yield exportSite(Object.assign(Object.assign({}, argv), { packageName,
|
|
245
250
|
cliVersion }));
|