mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
feat(cli): Fallback on the spec's title before falling back on… (#1073)
This commit is contained in:
parent
42696a01ba
commit
e01eea445c
|
@ -99,7 +99,6 @@ YargsParser.command(
|
||||||
yargs.options('title', {
|
yargs.options('title', {
|
||||||
describe: 'Page Title',
|
describe: 'Page Title',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: 'ReDoc documentation',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
yargs.options('disableGoogleFont', {
|
yargs.options('disableGoogleFont', {
|
||||||
|
@ -291,7 +290,7 @@ async function getPageHTML(
|
||||||
? '<script src="https://unpkg.com/redoc@next/bundles/redoc.standalone.js"></script>'
|
? '<script src="https://unpkg.com/redoc@next/bundles/redoc.standalone.js"></script>'
|
||||||
: `<script>${redocStandaloneSrc}</script>`) + css
|
: `<script>${redocStandaloneSrc}</script>`) + css
|
||||||
: '<script src="redoc.standalone.js"></script>',
|
: '<script src="redoc.standalone.js"></script>',
|
||||||
title,
|
title: title || spec.info.title || 'ReDoc documentation',
|
||||||
disableGoogleFont,
|
disableGoogleFont,
|
||||||
templateOptions,
|
templateOptions,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user