This is similar to the changes made in docker/docker.github.io#5607
(32958e7c60), but which appear
to didn't make their way into newer versions that were added.
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.
Size of the API directory:
before: 5.961.110 bytes (6 MB on disk)
after: 15.570 bytes (74 KB on disk)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* 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>
* Revert "Clarify patch and update cycles (#4894)"
This reverts commit 6b1577aa0d.
* Revert "Add pointer to latest API ref (#4892)"
This reverts commit a6b436d133.
* Go back to small /edge
* Update site front page
Add info about Editions
Reorganize components
Update headings
* Move logic of fetching content to a script
* Add v1.28 API
* Add info about versioned API
* Fix title in Engine API getting started
A weird character was causing it to not be rendered correctly.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Update getting-started.md