mirror of
https://github.com/Redocly/redoc.git
synced 2025-11-04 17:57:30 +03:00
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com> Co-authored-by: Alex Varchuk <olexandr.varchuk@gmail.com> Co-authored-by: Oprysk Vyacheslav <vyacheslav@redocly.com> Co-authored-by: Ivan Kropyvnytskyi <130547411+ivankropyvnytskyi@users.noreply.github.com> Co-authored-by: Yevhen Pylyp <yevhen.pylyp@redocly.com> Co-authored-by: Vladyslav Makarenko <vladyslav.makarenko@redocly.com> Co-authored-by: Yevhenii Medviediev <yevhenii.medviediev@redocly.com> Co-authored-by: Oleksii Horbachevskyi <oleksii.horbachevskyi@redocly.com> Co-authored-by: volodymyr-rutskyi <rutskyi.v@gmail.com> Co-authored-by: Adam Altman <adam@redoc.ly> Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com> Co-authored-by: Anastasiia Derymarko <anastasiia@redocly.com> Co-authored-by: Roman Marshevskyy <roman.marshevskyy@redoc.ly> Co-authored-by: Lorna Mitchell <lorna.mitchell@redocly.com> Co-authored-by: Taylor Krusen <taylor.krusen@redocly.com>
51 lines
1.2 KiB
HTML
51 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>ReDoc</title>
|
|
<!-- needed for adaptive design -->
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link
|
|
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Source+Code+Pro:400:700"
|
|
rel="stylesheet"
|
|
/>
|
|
|
|
<!--
|
|
ReDoc doesn't change outer page styles
|
|
-->
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="redoc_container"></div>
|
|
<script type="module">
|
|
import { init } from './bundle/redoc.standalone.js';
|
|
|
|
const searchParams = new URLSearchParams(location.search);
|
|
const hideInfoSection = searchParams.get('hideInfoSection');
|
|
|
|
init(
|
|
'./openapi/petstore.yaml',
|
|
{
|
|
hideInfoSection,
|
|
downloadUrls: [
|
|
{
|
|
url: 'http://redocly.com/definition.yaml',
|
|
name: 'definition.yaml',
|
|
},
|
|
{
|
|
url: 'http://redocly.com/definition.json',
|
|
name: 'definition.json',
|
|
},
|
|
],
|
|
},
|
|
document.getElementById('redoc_container'),
|
|
);
|
|
</script>
|
|
</body>
|
|
</html>
|