mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
- layouts/partials/ → layouts/_partials/ - layouts/shortcodes/ → layouts/_shortcodes/ - layouts/_default/_markup/ → layouts/_markup/ - layouts/_default/*.html → layouts/*.html (flatten _default/) - layouts/index.html → layouts/home.html - layouts/index.*.json/txt → layouts/home.*.json/txt - layouts/_default/index.llms.txt → layouts/home.llms.txt - layouts/tag/ → layouts/tags/ (match /tags/ URL path)
77 lines
2.3 KiB
HTML
77 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
{{ $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }}
|
|
<title>{{ .Title }}</title>
|
|
<!-- needed for adaptive design -->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="description" content="{{ .Description }}" />
|
|
<meta charset="utf-8" />
|
|
<!-- favicon -->
|
|
<link rel="icon" href="/assets/images/favicon-32x32.png" sizes="32x32" />
|
|
<link rel="icon" href="/assets/images/favicon-192x192.png" sizes="192x192" />
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<!--
|
|
Provide a link to the swagger / OpenAPI spec itself. We're currently using
|
|
Swagger (OpenAPI v2) for some, so use a more generic "application/yaml" type.
|
|
|
|
Once all our specs are updated to OpenAPI v3, we can change this to "application/vnd.oai.openapi"
|
|
-->
|
|
<link rel="alternate" href="{{ $specURL.String | absURL }}" type="application/yaml" title="{{ .Title }} (Swagger/OpenAPI)" />
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.menu-content>div:first-child {
|
|
background-color: #086dd7;
|
|
padding: 16px;
|
|
}
|
|
|
|
.auth-tag,.pat,.oat {
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
padding: 5px;
|
|
}
|
|
|
|
.pat {
|
|
background-color: rgb(149, 80, 124);
|
|
}
|
|
|
|
.pat::after {
|
|
content: "personal access token";
|
|
}
|
|
|
|
.oat::after {
|
|
content: "org access token";
|
|
}
|
|
|
|
.oat {
|
|
background-color: rgb(24, 111, 175);
|
|
}
|
|
|
|
.auth-tag:not(:last-child) {
|
|
margin-right: 5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<noscript>
|
|
<p>
|
|
This page is rendered with JavaScript.<br>
|
|
<a target="_blank" href="{{ $specURL.String | absURL }}" rel="noreferrer">Download {{ .Title }} Swagger/OpenAPI specification</a>
|
|
</p>
|
|
</noscript>
|
|
{{ if or (strings.HasPrefix .RelPermalink "/reference/api/hub/") (strings.HasPrefix .RelPermalink "/reference/api/registry/") }}
|
|
<redoc spec-url="{{ $specURL.String }}" suppress-warnings="true" lazy-rendering></redoc>
|
|
{{ else }}
|
|
<redoc spec-url="{{ $specURL.String }}" hide-hostname="true" suppress-warnings="true" lazy-rendering></redoc>
|
|
{{ end }}
|
|
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
|
|
</body>
|
|
|
|
</html>
|