mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
Preparation for the next commit in which we'll make the script tag async (in order to use await to fetch the new versions.json file). Signed-off-by: Martin Fischer <martin@push-f.com>
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Reference</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=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
|
|
|
<!--
|
|
ReDoc doesn't change outer page styles
|
|
-->
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
|
|
<div id="redoc-container"></div>
|
|
<script>
|
|
// get version from query (default to latest)
|
|
var queryString = window.location.search;
|
|
var query = new URLSearchParams(queryString);
|
|
var version = "latest";
|
|
if (query.has("version")) {
|
|
version = query.get("version");
|
|
}
|
|
|
|
Redoc.init("https://storage.googleapis.com/libpod-master-releases/swagger-" + version + ".yaml", {
|
|
sortPropsAlphabetically: true,
|
|
sortOperationsAlphabetically: true,
|
|
}, document.getElementById("redoc-container"));
|
|
</script>
|
|
</body>
|
|
</html>
|