mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
<!--Delete sections as needed --> ## Description Display the base url specifically for Hub API and Registry API docs. Is this enough, or do we also need to write something about it in the description at the top?  ## Related issues or tickets ENGDOCS-2748 ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Editorial review --------- Signed-off-by: Craig <craig.osterhout@docker.com>
62 lines
1.5 KiB
HTML
62 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<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="shortcut icon" href="/assets/images/favicon.svg" type="image/svg">
|
|
<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>
|
|
{{ $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }}
|
|
{{ 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>
|