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:
Stuart McGrigor 2019-08-23 01:36:25 +12:00
parent d1c7e3b301
commit 500708b6c6

View File

@ -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>'