mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 06:34:53 +03:00
Added redocOptions as a separate token in template; it allows us to hand-write the redocHTML, which allows us to have a callback on ReDoc.init
This commit is contained in:
parent
d1c7e3b301
commit
500708b6c6
|
@ -253,6 +253,7 @@ async function getPageHTML(
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>`,
|
</script>`,
|
||||||
|
redocOptions: `${JSON.stringify(redocOptions)}`,
|
||||||
redocHead: ssr
|
redocHead: ssr
|
||||||
? (cdn
|
? (cdn
|
||||||
? '<script src="https://unpkg.com/redoc@next/bundles/redoc.standalone.js"></script>'
|
? '<script src="https://unpkg.com/redoc@next/bundles/redoc.standalone.js"></script>'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user