Uh oh!
There was an error while loading. Please reload this page.
cmd: set double quotes as code delimiter - #3924
Conversation
5982a37 to
faf3ce3CompareCodecov Report
Additional details and impacted files@@ Coverage Diff @@## master #3924 +/- ##
==========================================
- Coverage 59.20% 59.20% -0.01%
==========================================
Files 287 287 Lines 24687 24690 +3 ==========================================
Hits 14617 14617 - Misses 9186 9189 +3
Partials 884 884 |
faf3ce3 to
5d6abd3Comparecrazy-max
commented
Dec 19, 2022
@thaJeztah I wonder if https://github.com/docker/cli/blob/master/docs/reference/commandline/dockerd.md should not be in moby repo instead? |
Uh oh!
There was an error while loading. Please reload this page.
thaJeztah
commented
Dec 19, 2022
Yeah, there was a bit of a debate at the time about that. I suggested it should be in the moby repo, but ISTR there were some reasons at the time to move it as well (but it may have been "it's easier to move all files"). We should look at moving it back, but ideally preserving history (might be fun as it will contain history from "before" it was moved and "after", and possibly because of the move; same history twice 😅 😓). |
5d6abd3 to
7146630Compare
thaJeztah
left a comment
There was a problem hiding this comment.
Thanks! Overall looking great! Left two comments (and opened a PR 😄 )
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
7146630 to
7bd4eb2CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| flags.StringVar(&options.availability, flagAvailability, "", `Availability of the node ("active"|"pause"|"drain")`) | ||
| flags.Var(&options.annotations.labels, flagLabelAdd, "Add or update a node label (key=value)") | ||
| flags.StringVar(&options.role, flagRole, "", `Role of the node ("worker|manager")`) | ||
| flags.StringVar(&options.availability, flagAvailability, "", `Availability of the node ("active|pause|drain")`) |
There was a problem hiding this comment.
I'm slightly on the fence on these (but admitted: we weren't very consistent); slightly wondering what's clearer on intent;
"foo"|"bar"either"foo"(string) or"bar"(string)"foo|bar"a string of either foo or bar- some other notation? (
"foo", "bar", or "baz") ? - extended notation for all of these (multiple lines; short explanation for each option)
There was a problem hiding this comment.
in the build docs we've used comma-separated notation, and the options wrapped in code spans. My subjective opinion is that comma is more readable than pipes, but this is probably debatable.
There was a problem hiding this comment.
IMO single quotes containing all options are confusing ("foo|bar").
Personally I find commas clearer than pipes when only one value can be given at once, so 3rd option looks good for me:
flags.StringVar(&options.role, flagRole, "", `Role of the node ("worker" or "manager")`)
flags.StringVar(&options.availability, flagAvailability, "", `Availability of the node ("active", "pause" or "drain")`)7bd4eb2 to
cf59011Comparecf59011 to
35af679ComparethaJeztah
commented
Dec 31, 2022
Looks like an e2e test needs updating; |
Keep frontmatter for docker, dockerd and index markdown files. Also needs to copy docker.md > cli.md otherwise yaml generation on docs website doesn't work: docker#3924 (comment) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
a17bc0f to
b7d9555CompareKeep frontmatter for docker, dockerd and index markdown files. Also needs to copy docker.md > cli.md otherwise yaml generation on docs website doesn't work: docker#3924 (comment) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Keep frontmatter for docker, dockerd and index markdown files. Also needs to copy docker.md > cli.md otherwise yaml generation on docs website doesn't work: docker#3924 (comment) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Keep frontmatter for docker, dockerd and index markdown files. Also needs to copy docker.md > cli.md otherwise yaml generation on docs website doesn't work: docker#3924 (comment) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: docker#3924 (comment) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
b7d9555 to
8fbaac0CompareSigned-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: docker#3924 (comment) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
8fbaac0 to
0bbcc52CompareKeep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: docker#3924 (comment) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
0bbcc52 to
549166cCompare
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM!
I swapped the last two commits, so that we have the option of cherry-picking the anchor quote fixes
thaJeztah
commented
Jan 6, 2023
Arf, and of course then it wants the DCO to be fixed; let me do so |
Signed-off-by: Kevin Alvarez <crazy-max@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: docker#3924 (comment) Signed-off-by: Kevin Alvarez <crazy-max@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
549166c to
79c9e52CompareSee docker/cli#3924 and others
See docker/cli#3924 and others
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: docker/cli#3924 (comment) Signed-off-by: Kevin Alvarez <crazy-max@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
follow-up docker/docs#16093 (comment)
- What I did
Set
"as code delimiter for flags usage output to fix issue with docs generation.Also generates markdown in reference docs to be aligned as it seems we drifted a bit. Frontmatter section in md files doesn't seem to be used anymore so remove it as well.
And I found out that #2936 and #2024 break markdown tables (see last 2 commits).In follow-up we should also validate docs like it's done in buildx: https://github.com/docker/buildx/blob/88852e2330a200d495342e01783a922a5328d55c/hack/dockerfiles/docs.Dockerfile#L30-L43
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)