Automatically generate Engine API documentation#606
Automatically generate Engine API documentation#606mdlinville merged 3 commits intodocker:vnext-enginefrom
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 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 <[email protected]>
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 <[email protected]> (cherry picked from commit 993854f) Signed-off-by: Victor Vieux <[email protected]>
|
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 <[email protected]>
|
@bfirsh Everything in |
This makes the swagger.yaml useful outside of the documentation. For background: docker/docs#606 (comment) Signed-off-by: Ben Firshman <[email protected]> (cherry picked from commit 54051b1) Signed-off-by: Victor Vieux <[email protected]>
|
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 <[email protected]>
See moby/moby#28319 Signed-off-by: Ben Firshman <[email protected]>
Signed-off-by: Ben Firshman <[email protected]>
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 <[email protected]>
This makes the swagger.yaml useful outside of the documentation. For background: docker/docs#606 (comment) Signed-off-by: Ben Firshman <[email protected]>

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