Playground edition of ReDoc uses options

This commit is contained in:
Stuart McGrigor 2019-08-09 00:24:19 +12:00
parent 15017ed0e5
commit e5165b8cbe

View File

@ -4,7 +4,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>ReDoc</title> <title>ReDoc Playground</title>
<style> <style>
body { body {
margin: 0; margin: 0;
@ -26,6 +26,14 @@
<body> <body>
<redoc id="example"></redoc> <redoc id="example"></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
<script>
Redoc.init('../openapi.yaml', {
scrollYOffset: 50,
theme:{ colors:{primary:{main: "#ff0000"}}},
showExtensions: ['x-accessControl']
}, document.getElementById('example'))
</script>
</body> </body>
</html> </html>