mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 08:36:33 +03:00
feat(cli): add the --title option to the serve subcommand (#1160)
This commit is contained in:
parent
1c7fc1a261
commit
10414fc6d5
|
@ -50,6 +50,11 @@ YargsParser.command(
|
||||||
describe: 'path or URL to your spec',
|
describe: 'path or URL to your spec',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
yargs.options('title', {
|
||||||
|
describe: 'Page Title',
|
||||||
|
type: 'string',
|
||||||
|
});
|
||||||
|
|
||||||
yargs.option('s', {
|
yargs.option('s', {
|
||||||
alias: 'ssr',
|
alias: 'ssr',
|
||||||
describe: 'Enable server-side rendering',
|
describe: 'Enable server-side rendering',
|
||||||
|
@ -73,6 +78,7 @@ YargsParser.command(
|
||||||
async argv => {
|
async argv => {
|
||||||
const config: Options = {
|
const config: Options = {
|
||||||
ssr: argv.ssr as boolean,
|
ssr: argv.ssr as boolean,
|
||||||
|
title: argv.title as string,
|
||||||
watch: argv.watch as boolean,
|
watch: argv.watch as boolean,
|
||||||
templateFileName: argv.template as string,
|
templateFileName: argv.template as string,
|
||||||
templateOptions: argv.templateOptions || {},
|
templateOptions: argv.templateOptions || {},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user