mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00

Right now it is not possible to look at the API version for a specific version. docs.podman.io always show the latest version from the main branch. This is not want many users want so they now have the ability to select a different version. Fixes #12796 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
40 lines
1.2 KiB
HTML
40 lines
1.2 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>
|
|
// 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");
|
|
}
|
|
|
|
var redoc = document.createElement("redoc");
|
|
redoc.setAttribute("sort-props-alphabetically","");
|
|
redoc.setAttribute("sort-operations-alphabetically","");
|
|
redoc.setAttribute("spec-url","https://storage.googleapis.com/libpod-master-releases/swagger-" + version + ".yaml");
|
|
|
|
document.body.appendChild(redoc);
|
|
</script>
|
|
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
|
|
</body>
|
|
</html>
|