hub/docs/api/index.html

68 lines
1.9 KiB
HTML

<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Artifact Hub UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="./custom-styles.css" >
<link rel="shortcut icon" type="image/png" href="https://artifacthub.io/static/media/logo_v2.png">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="apple-touch-icon" href="https://artifacthub.io/static/media/logo192_v2.png">
<link rel="apple-touch-icon" sizes="512x512" href="https://artifacthub.io/static/media/logo512_v2.png">
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
*,
*:before,
*:after
{
box-sizing: inherit;
}
body
{
margin:0;
background: #fafafa;
}
</style>
</head>
<body>
<div class="nav">
<div class="nav-content">
<a href="/" target="_blank" rel="noopener noreferrer">
<img src="https://artifacthub.io/static/media/logo/artifacthub-brand-white.svg" alt="Artifact Hub logo" />
</a>
</div>
</div>
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
const ui = SwaggerUIBundle({
url: "openapi.yaml",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset.slice(1), // Hides topbar
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl,
],
layout: "StandaloneLayout"
})
window.ui = ui
}
</script>
</body>
</html>