Skip to content

WIP: move command line reference docs for new command structure#26784

Closed
dnephin wants to merge 1 commit intomasterfrom
docs-for-new-commands
Closed

WIP: move command line reference docs for new command structure#26784
dnephin wants to merge 1 commit intomasterfrom
docs-for-new-commands

Conversation

@dnephin
Copy link
Member

@dnephin dnephin commented Sep 21, 2016

Fixes: #26721

This is just a preview of the changes I'm going to make. I'd like to get this reviewed before I go moving everything. This is going to be a lot of manual work since we don't have #25615 yet.

For the man pages I would like to move the text into the command description so we can auto-generate the command. Since we had issues with in-lining the text I'll work on a way to store the description text in an external file that is just referenced from the source code.

If this looks correct, I'll proceed with the rest of the changes.

@dnephin
Copy link
Member Author

dnephin commented Sep 21, 2016

cc @thaJeztah for sign-off on this approach

@thaJeztah
Copy link
Member

hm, not sure. I originally was thinking of doing a Hugo redirect to the "canonical" command (and mention the aliases there).

Let me ping @mstanleyjones as well for input

@dnephin
Copy link
Member Author

dnephin commented Sep 21, 2016

That is another option that I was considering. I thought that it might be confusing to auto-redirect to a page that talks about a (slightly) command, but maybe not.

@mdlinville
Copy link
Contributor

This seems related but orthogonal to #26791. I don't have any particular opinion on the changes in this PR, but I wonder why we have all these aliases. I prefer this way than using Hugo redirects, as it creates more transparency for the reader. I can imagine some confusion if someone thinks they are going to one page and they get redirected to another with no explanation.

@dnephin
Copy link
Member Author

dnephin commented Sep 21, 2016

I wonder why we have all these aliases

Many of these docker commands were introduced when there were only two "object types": containers, and images. So they were all created as top level commands. Now we have volumes, networks, nodes, services, stacks, plugins, etc. All the new objects are under a "management subcommand" (ex docker volume x).

We're trying to move all the older commands to match this same pattern, but we also don't want to break backwards compatibility. So for now they will remain as aliases. One day maybe we'll be able to deprecated them, and maybe some day after that they'll be long forgotten and we can actually remove them.

Copy link
Contributor

@mdlinville mdlinville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Want to get this in before the Singularity tomorrow afternoon when we move docs into a separate repo?

@dnephin
Copy link
Member Author

dnephin commented Sep 28, 2016

It wont be ready in time for that this is just a preview of the much larger change I have to make. We also don't want to publish this until 1.13 is released, so there is plenty of time.

@thaJeztah
Copy link
Member

@mstanleyjones all these changes are in the docs/reference/ directory; IIRC, those stay in this repository?

@mdlinville
Copy link
Contributor

Oh, you are absolutely right. Disregard my prior comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants