From e01eea445c93d74b66533c860d76bb3aff4d6df2 Mon Sep 17 00:00:00 2001 From: Zakary Kamal Ismail Date: Thu, 12 Dec 2019 10:31:08 -0500 Subject: [PATCH] =?UTF-8?q?feat(cli):=20Fallback=20on=20the=20spec's=20tit?= =?UTF-8?q?le=20before=20falling=20back=20on=E2=80=A6=20(#1073)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index e5f90733ac..ce3e44b508 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, });