-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically generate Engine API documentation #606
Conversation
Deploy preview ready! Built with commit 007d0a5 |
508001e
to
89e0467
Compare
Noting an offline discussion: the |
89e0467
to
c3f87ac
Compare
@sanscontext @mstanleyjones @londoncalling @joaofnfernandes The most relevant staging URL is here: Be aware that this PR also changes "Remote API" to "Engine API" so make sure any find/replaces were done right |
@bfirsh Can you make the links to API versions relative instead of https://docs.docker.com ? E.g. have the URLs just be https://deploy-preview-606--docker-docs.netlify.com/engine/api/v1.25/#section/Versioning Clicking on these now, you can see that they 404 |
Other than that, this LGTM! |
Can we hold off on merge until I've got a Docker ID stub in place to rehome the Hub docs? |
Please hold off until #634 has merged. |
@johndmulhausen Okay. That was intentional so the swagger.yaml would work standalone, but I guess it's not the end of the world making the intro description just work inside the documentation. |
@bfirsh Belay my comment then; I get it. |
Due to #511, we're now going to have to wait for moby/moby#28506 to make its way into the 1.12 branch. I will push this along. :) |
See: docker/docs#606 Also: - Add missing redirects to API reference pages - Remove v1.25 and 1.26, because they are being replaced with swagger generated docs. - Remove all other docs which aren't reference material, because this can live in docker/docker.github.io Signed-off-by: Ben Firshman <ben@firshman.co.uk>
See: docker/docs#606 Also: - Add missing redirects to API reference pages - Remove v1.25 and 1.26, because they are being replaced with swagger generated docs. - Remove all other docs which aren't reference material, because this can live in docker/docker.github.io Signed-off-by: Ben Firshman <ben@firshman.co.uk> (cherry picked from commit 993854f) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
moby/moby#28506 is now merged. 🎉 I'll wait for #674 before updating this PR. |
@mstanleyjones @johndmulhausen This is also just for Docker 1.13, so presumably I should open it against the branch |
b561355
to
4843cf9
Compare
Okay, I have now implemented this PR on top of #511 and #674. The implementation is ready for review, apart from the hacks in Once #511 and #674 have made their way into the |
This makes the swagger.yaml useful outside of the documentation. For background: docker/docs#606 (comment) Signed-off-by: Ben Firshman <ben@firshman.co.uk>
@bfirsh Everything in |
This makes the swagger.yaml useful outside of the documentation. For background: docker/docs#606 (comment) Signed-off-by: Ben Firshman <ben@firshman.co.uk> (cherry picked from commit 54051b1) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
You'll now want to look at #756, though that's only there for audit purposes. If @thaJeztah approves it I will force-push |
4843cf9
to
007d0a5
Compare
@bfirsh Where are we on this? Do you plan to shut this PR down and make a new one pointed at |
@johndmulhausen Yep! Just waiting for I'm not really keeping a close eye on that, so feel free to ping me on here when I need to my bit. |
@bfirsh this should be good to go after you rebase on current |
007d0a5
to
ed9ff27
Compare
Makes more sense here instead of the Engine reference. It is only consumed by the Engine. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
See moby/moby#28319 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
ed9ff27
to
bb3423a
Compare
Oh nice - thanks! Glad that just worked. 💃 |
See: docker/docs#606 Also: - Add missing redirects to API reference pages - Remove v1.25 and 1.26, because they are being replaced with swagger generated docs. - Remove all other docs which aren't reference material, because this can live in docker/docker.github.io Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This makes the swagger.yaml useful outside of the documentation. For background: docker/docs#606 (comment) Signed-off-by: Ben Firshman <ben@firshman.co.uk>
I have replaced the Engine API docs with a version that is automatically generated from a Swagger definition, using ReDoc. It looks a bit like this:
I have also reorganised the menu for the Engine API to make it simpler and clearer:
Before, it was under "reference", even though some of it wasn't reference material, and it also seemed quite hidden that deep in the menu tree.
I've done a few other things, too:
s/_/-/
, etc)Known issues
Related issues
/cc @dnephin @johndmulhausen