Skip to content

Commit

Permalink
feat(cli): Fallback on the spec's title before falling back on… (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakCodes authored and RomanHotsiy committed Dec 12, 2019
1 parent 42696a0 commit e01eea4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ YargsParser.command(
yargs.options('title', {
describe: 'Page Title',
type: 'string',
default: 'ReDoc documentation',
});

yargs.options('disableGoogleFont', {
Expand Down Expand Up @@ -291,7 +290,7 @@ async function getPageHTML(
? '<script src="https://unpkg.com/redoc@next/bundles/redoc.standalone.js"></script>'
: `<script>${redocStandaloneSrc}</script>`) + css
: '<script src="redoc.standalone.js"></script>',
title,
title: title || spec.info.title || 'ReDoc documentation',
disableGoogleFont,
templateOptions,
});
Expand Down

0 comments on commit e01eea4

Please sign in to comment.