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>
|
<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>
|
Loading…
Reference in New Issue
Block a user