@ivamuno/nestjs-openapi
Version:
2 lines (1 loc) • 1.28 kB
TypeScript
export declare const redocHandlebars = "<html>\n\n<head>\n <title>{{ data.title }}</title>\n <!-- needed for adaptive design -->\n <meta charset=\"utf-8\" />\n {{#if data.favicon}}\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{{ data.favicon }}\" />\n {{/if}}\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <link href=\"https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700\" rel=\"stylesheet\">\n <!--\n ReDoc doesn't change outer page styles\n -->\n <style>\n body {\n margin: 0;\n padding: 0;\n }\n </style>\n</head>\n\n<body>\n <!-- we provide is specification here -->\n <div id=\"redoc_container\"></div>\n <script src=\"https://cdn.jsdelivr.net/npm/redoc-asyncapi/bundles/redoc.standalone.js\"> </script>\n <script>\n let themeJSON = '{{{ toJSON data.theme }}}';\n if (themeJSON === '') { themeJSON = undefined }\n Redoc.init(\n '{{ data.docUrl }}',\n {\n ...(themeJSON && {\n theme: {\n ...JSON.parse(themeJSON)\n }\n }),\n ...JSON.parse('{{{ toJSON data.options }}}')\n },\n document.getElementById(\"redoc_container\")\n );\n </script>\n</body>\n\n</html>";
\n