chore: remove cdn option from build-docs (#1168)

This commit is contained in:
Andrew Tatomyr
2023-07-10 16:29:32 +03:00
committed by GitHub
parent 0b393f3584
commit e9fea72e6a
6 changed files with 1 additions and 15 deletions

View File

@@ -51,7 +51,6 @@ export async function getPageHTML(
api: any,
pathToApi: string,
{
cdn,
title,
disableGoogleFont,
templateFileName,
@@ -87,9 +86,7 @@ export async function getPageHTML(
</script>`,
redocHead:
(cdn
? '<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>'
: `<script src="https://cdn.redoc.ly/redoc/v${redocCurrentVersion}/bundles/redoc.standalone.js"></script>`) +
`<script src="https://cdn.redoc.ly/redoc/v${redocCurrentVersion}/bundles/redoc.standalone.js"></script>` +
css,
title: title || api.info.title || 'ReDoc documentation',
disableGoogleFont,