mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
* Share redoc JavaScript between API versions The redoc JavaScript is a big file, and there's no need to keep a separate copy for each version of the API. This patch removes the copy per-version and moves the script to a central location. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> * Use central stylesheet for API reference Signed-off-by: Sebastiaan van Stijn <github@gone.nl> * Update ReDoc to v1.19.3 Changelog can be found at https://github.com/Rebilly/ReDoc/blob/v1.19.3/CHANGELOG.md Signed-off-by: Sebastiaan van Stijn <github@gone.nl> * Hide "request type" badges in menu ReDoc 1.13 added "request type" badges in the menu given that we didn't show these before, this patch hides them. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> * Add .map file for ReDoc Having a .map file allows debugging script issues in the ReDoc JavaScript (which is minified). It's a big file, but may be useful to have. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
26 lines
520 B
CSS
26 lines
520 B
CSS
/**
|
|
* Styles for the Swagger API documentation (engine/api/v1.x/index.html)
|
|
*/
|
|
|
|
|
|
/* ReDoc doesn't change outer page styles */
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
api-logo {
|
|
background-image: linear-gradient(0deg, #15A4D7 0%, #1488C6 100%);
|
|
height: 100px;
|
|
text-align: left !important;
|
|
}
|
|
api-logo img {
|
|
width: 136px !important;
|
|
margin: 32px 0 0 50px;
|
|
}
|
|
/**
|
|
* Disable request-type badges, see https://github.com/Rebilly/ReDoc/issues/61
|
|
*/
|
|
redoc .operation-type {
|
|
display: none !important;
|
|
}
|