Update redoc to latest version

This commit is contained in:
Chris Ainsworth-Patrick 2022-06-01 11:23:48 +01:00
parent b1bc3b33e3
commit 2d6c65f9bf
7 changed files with 1771 additions and 24 deletions

View File

@ -17,6 +17,6 @@
</head>
<body>
<redoc spec-url="/engine/api/{{ page.name | replace: '.md'}}.yaml" hide-hostname="true" suppress-warnings="true" lazy-rendering></redoc>
<script src="/js/redoc.min.js"></script>
<script src="/js/redoc.standalone.js"></script>
</body>
</html>

View File

@ -17,6 +17,6 @@
</head>
<body>
<redoc spec-url="/docker-hub/api/{{ page.name | replace: '.md'}}.yaml" hide-hostname="false" suppress-warnings="false" class="hub-api"></redoc>
<script src="/js/redoc.min.js"></script>
<script src="/js/redoc.standalone.js"></script>
</body>
</html>

View File

@ -16,14 +16,33 @@ body {
padding: 0;
}
api-logo {
background-color: $bg-header;
height: 60px;
text-align: left !important;
.menu-content {
> div:first-child {
background-color: $bg-header;
height: 60px;
text-align: left !important;
img {
width: 160px !important;
margin: 15px 20px;
img {
width: 160px !important;
margin: 15px 20px;
}
}
label.-depth0 span, label.-depth1 span {
font-family: $font !important;
}
label.-depth0 {
text-transform: none;
color: $body-text !important;
}
label.-depth1 span {
color: $primary-links !important;
}
ul + div {
display: none;
}
}
@ -37,18 +56,14 @@ redoc {
color: inherit !important;
}
p, a, .menu-item-title {
p, a {
font-family: $font !important;
}
a, .menu-item-title {
a {
color: $primary-links !important;
}
.menu-item-title {
text-transform: none;
}
// Disable request-type badges, see https://github.com/Rebilly/ReDoc/issues/61
.operation-type {
display: none !important;

8
js/redoc.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1740
js/redoc.standalone.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long