Skip to content

Commit

Permalink
docs: change html
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Oct 30, 2023
1 parent dab31c5 commit 2828a85
Showing 1 changed file with 19 additions and 44 deletions.
63 changes: 19 additions & 44 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,49 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="SwaggerIU" />
<title>SwaggerUI | Zapmeow</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" />

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
const ui = SwaggerUIBundle({
configUrl: "swagger.json",
dom_id: '#swagger-ui'
})

window.ui = ui
}
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
<script src="https://unpkg.com/[email protected]/swagger-ui-standalone-preset.js" crossorigin></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: 'swagger.json',
dom_id: '#swagger-ui',
});
};
</script>
</body>
</body>
</html>

0 comments on commit 2828a85

Please sign in to comment.