mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
feat: add disable-google-font parameter to serve command in cli (#1558)
This commit is contained in:
parent
4846259de3
commit
c7bbef5155
|
@ -72,6 +72,12 @@ YargsParser.command(
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
yargs.options('disable-google-font', {
|
||||||
|
describe: 'Disable Google Font',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
});
|
||||||
|
|
||||||
yargs.demandOption('spec');
|
yargs.demandOption('spec');
|
||||||
return yargs;
|
return yargs;
|
||||||
},
|
},
|
||||||
|
@ -80,6 +86,7 @@ YargsParser.command(
|
||||||
ssr: argv.ssr as boolean,
|
ssr: argv.ssr as boolean,
|
||||||
title: argv.title as string,
|
title: argv.title as string,
|
||||||
watch: argv.watch as boolean,
|
watch: argv.watch as boolean,
|
||||||
|
disableGoogleFont: argv.disableGoogleFont as boolean,
|
||||||
templateFileName: argv.template as string,
|
templateFileName: argv.template as string,
|
||||||
templateOptions: argv.templateOptions || {},
|
templateOptions: argv.templateOptions || {},
|
||||||
redocOptions: getObjectOrJSON(argv.options),
|
redocOptions: getObjectOrJSON(argv.options),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user