mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 22:54:51 +03:00
Playground edition of ReDoc uses options
This commit is contained in:
parent
15017ed0e5
commit
e5165b8cbe
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>ReDoc</title>
|
||||
<title>ReDoc Playground</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
|
@ -26,6 +26,14 @@
|
|||
|
||||
<body>
|
||||
<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>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user