mirror of
https://github.com/h44z/wg-portal.git
synced 2026-02-24 11:26:21 +00:00
Deployed 3e0ffec to master with MkDocs 1.6.1 and mike 2.1.3
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -5,7 +5,6 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Swagger UI</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../assets/stylesheets/swagger-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" id="slate-css" media="none" href="../../../assets/stylesheets/swagger-ui-dark.css" />
|
||||
|
||||
</head>
|
||||
|
||||
@@ -15,6 +14,10 @@
|
||||
<script src="../../../assets/javascripts/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
|
||||
var url = "../swagger.yaml";
|
||||
|
||||
|
||||
window.ui = SwaggerUIBundle({
|
||||
dom_id: "#swagger-ui",
|
||||
onComplete: onComplete,
|
||||
@@ -23,7 +26,7 @@
|
||||
SwaggerUIStandalonePreset
|
||||
],
|
||||
|
||||
url: "../swagger.yaml",
|
||||
url,
|
||||
|
||||
|
||||
"oauth2RedirectUrl": new URL("../../../assets/swagger-ui/oauth2-redirect.html",window.location.href).href,
|
||||
@@ -59,15 +62,15 @@
|
||||
}
|
||||
|
||||
enable_dark_mode = function(){
|
||||
document.getElementById("slate-css").media = ""
|
||||
document.documentElement.classList.add("dark-mode");
|
||||
}
|
||||
|
||||
disable_dark_mode = function(){
|
||||
document.getElementById("slate-css").media = "none"
|
||||
document.documentElement.classList.remove("dark-mode");
|
||||
}
|
||||
|
||||
const resize_ob = new ResizeObserver(function(entries) {
|
||||
parent.update_swagger_ui_iframe_height("d042b843");
|
||||
parent.update_swagger_ui_iframe_height("37dfbe02");
|
||||
});
|
||||
|
||||
// start observing for resizing
|
||||
Reference in New Issue
Block a user