From dfdb830e546b07bd77a70ed0bce1671d9e6cc990 Mon Sep 17 00:00:00 2001 From: Zakary Kamal Ismail Date: Wed, 16 Oct 2019 20:36:26 -0400 Subject: [PATCH] feat(cli): Fallback on the spec's title before falling back on "ReDoc documentation" (#1068) --- cli/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index e5f90733..ce3e44b5 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -99,7 +99,6 @@ YargsParser.command( yargs.options('title', { describe: 'Page Title', type: 'string', - default: 'ReDoc documentation', }); yargs.options('disableGoogleFont', { @@ -291,7 +290,7 @@ async function getPageHTML( ? '' : ``) + css : '', - title, + title: title || spec.info.title || 'ReDoc documentation', disableGoogleFont, templateOptions, });