Граф коммитов

190 Коммитов

Автор SHA1 Сообщение Дата
CrazyMax 8713b49f86
Fix workflow badge
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-24 14:00:52 +02:00
CrazyMax c3bbaa466e
Merge pull request #5 from crazy-max/rename
Rename project
2021-08-20 15:56:30 +02:00
CrazyMax 40b1fb6971
Rename project
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-20 15:55:23 +02:00
CrazyMax f1ab11512f
Merge pull request #4 from crazy-max/addlicense-update
Google addlicense 1.0.0
2021-08-17 13:17:47 +02:00
CrazyMax f6da7a61a0
Merge pull request #1 from crazy-max/readme
Enhance README
2021-08-17 13:17:07 +02:00
CrazyMax cef61c46a3
Enhance README
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-17 13:14:44 +02:00
CrazyMax fb3fa9b810
Google addlicense 1.0.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-17 09:41:03 +02:00
CrazyMax 170c3946d0
Merge pull request #2 from crazy-max/license
Add license headers
2021-08-16 17:47:24 +02:00
CrazyMax 498c729d92
Add license headers
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-10 00:06:38 +02:00
CrazyMax 1b7891cd65
Call pkg.go.dev when a new tag is pushed (force refresh)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:43 +02:00
CrazyMax 88368f24e1
Update README
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:40 +02:00
CrazyMax 9ab0e1f7e2
readme for example
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:38 +02:00
CrazyMax c707566669
add code of conduct and contributing notes
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:36 +02:00
CrazyMax 3422e0b822
lint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:35 +02:00
CrazyMax c5c3f8ccff
yaml: fix tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:30 +02:00
CrazyMax 96b790e2cc
remove codeql for now
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:28 +02:00
Tonis Tiigi 66d072b7f4
docs: add external docs links support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-08-03 22:46:26 +02:00
CrazyMax 4ea56f4993
Basic test
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:23 +02:00
CrazyMax c3af2c2ca6
Add CodeQL workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:21 +02:00
CrazyMax 39c860a617
Fix godev
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:19 +02:00
CrazyMax 70265e4072
Cleanup
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:18 +02:00
CrazyMax 8a505799c6
Add `GenTree` func
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:16 +02:00
CrazyMax 885c73a35e
Refactor markdown generator
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:14 +02:00
Tonis Tiigi cd90893cc2
docs: add md generation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-08-03 22:46:11 +02:00
CrazyMax 2420191f92
Rename package and move `LoadLongDescription` func
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:09 +02:00
CrazyMax 935e50b0b8
Fix linter and add tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-03 22:46:08 +02:00
CrazyMax a597105f32
GitHub workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:06 +02:00
CrazyMax 804f655148
Dependabot
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:04 +02:00
CrazyMax 262927dfee
Rename
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:02 +02:00
CrazyMax 566803f361
Container based developer flow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:46:00 +02:00
CrazyMax 784c2607dd
Example
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:45:58 +02:00
CrazyMax 32e083b57e
README
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-03 22:45:56 +02:00
CrazyMax 534d5b393e
Move sources and add go mod
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-03 22:45:32 +02:00
Sebastiaan van Stijn 22d660fa7f
Add YAML-docs generator
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-03 21:54:44 +02:00
Sebastiaan van Stijn 28aa8d80a0
integrate cli yamldocs code (with history)
Merge remote-tracking branch 'cli_yamldocs/master' into HEAD

    # install filter-repo (https://github.com/newren/git-filter-repo/blob/main/INSTALL.md)
    brew install git-filter-repo

    # create a temporary clone of docker/cli
    git clone https://github.com/docker/cli.git ~/Projects/cli_yamldocs
    cd cli_yamldocs

    # remove all code, except for docs/yaml, and rename to docs/yamlgen
    git filter-repo  --path docs/yaml --path-rename docs/yaml:docs/yamlgen

    # exclude the Dockerfile
    git filter-repo --path-glob 'docs/yamlgen/Dockerfile' --invert-paths

    # go to the target github.com/docker/docgen repository
    cd ~/projects/docgen

    # add the temporary repository as an upstream and make sure it's up-to-date
    git remote add cli_yamldocs ~/projects/cli_yamldocs
    git fetch cli_yamldocs

    # create a branch to work with
    git checkout -b import_history

    # do an interactive rebase
    git rebase -i -S aaa47f8fbd

    # set breakpoint before first import of yamldocs
    break
    pick 1e7a862 Add YAML-docs generator
    pick b3375b7 Move sources and add go mod
    pick 7b04bac README
    pick 2bf814d Example
    pick b5743a3 Container based developer flow
    pick e3997d7 Rename
    pick cd391b6 Dependabot
    pick 08d8459 GitHub workflow
    pick 75d4c97 Fix linter and add tests
    pick aaff066 Rename package and move `LoadLongDescription` func
    pick 05a4448 docs: add md generation
    pick e7a1fd1 Refactor markdown generator
    pick 10c276e Add `GenTree` func
    pick 8efbe43 Cleanup
    pick 5ca2026 Fix godev
    pick 4ed3e61 Add CodeQL workflow
    pick d739cb1 Basic test
    pick b75cd36 docs: add external docs links support
    pick e24b031 yamldocs: various improvements
    pick 80ca920 remove codeql for now
    pick 85eca43 yaml: fix tests
    pick 9b28897 lint
    pick f85801e add code of conduct and contributing notes
    pick e1298a2 readme for example
    pick 450385b Update README
    pick 0435ec1 Call pkg.go.dev when a new tag is pushed (force refresh)

    # merge the upstream code
    git merge --allow-unrelated-histories --signoff -S cli_yamldocs/master

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-03 21:44:54 +02:00
Sebastiaan van Stijn 77f5372c6c Merge pull request #3034 from thaJeztah/yamldocs_updates
yamldocs: various improvements
2021-07-30 21:26:52 +02:00
Sebastiaan van Stijn cea8e5bb78 docs/yaml: add TODO for conditionally skipping root command
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-30 20:51:09 +02:00
Sebastiaan van Stijn 4e78eda389 yamldocs: various improvements
- make sure the target directory is created if missing
- add support for custom ID's in headings through `<a>` tags (e.g.
  `<a name=heading2></a>`). This allows use of custom anchors that
  work both on GitHub (GFM doesn't support extended MarkDown), and
  in Jekyll (which does).
- add code to cleanup markdown for use in our docs:
    - remove absolute URLs to https://docs.docker.com
    - remove tabs in MarkDown, and convert them to 4 spaces. This
      prevents the YAML conversion from switching between "short"
      and "long" syntax. Tabs in code examples also don't always
      work well, so using spaces doesn't hurt for that.
- refactor some code for readability, and to be less "hacky" (still
  lots to be improved though)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-30 20:43:22 +02:00
CrazyMax aaa47f8fbd
License
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-29 19:23:14 +02:00
Sebastiaan van Stijn a86e45fd44 Merge pull request #3167 from mat007/stack-kubernetes-depreciation
Deprecate Kubernetes stack support
2021-07-02 16:35:11 +02:00
Mathieu Champlon e5caddc2d4 Deprecate Kubernetes stack support
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
2021-07-01 18:39:00 +02:00
Silvin Lubecki ca0d6b2d22 Merge pull request #2801 from thaJeztah/fix_missing_manual_entry
man-pages: fix missing manual title in heading
2020-10-20 14:22:48 +02:00
Sebastiaan van Stijn 3c98406fd3 man-pages: fix missing manual title in heading
This was set in our manually written markdowns, but not in the man pages
generated through Cobra.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-20 12:54:57 +02:00
Silvin Lubecki 7fb09fbce6 Merge pull request #2454 from thaJeztah/fix_yaml_description
yamldocs: add description to base command
2020-04-20 11:41:09 +02:00
Sebastiaan van Stijn 9b5225d092 yamldocs: add description to base command
Currently the documentation uses a special case for this command,
so adding a description to the YAML in order to remove that
special case.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-19 19:51:12 +02:00
Silvin Lubecki 48b521fef2 Merge pull request #2390 from thaJeztah/fix_yamldocs
Fix yamldocs generator to accomodate nested subcommands
2020-03-17 16:49:23 +01:00
Sebastiaan van Stijn 61351d82d4 Fix yamldocs generator to accomodate nested subcommands
The script was written to only take subcommands at the first and second level
into account, but failed to find the Markdown files for extended descriptions of
subcommands at the third level, such as `docker trust key generate`, and
`docker trust key load`:

    WARN: /go/src/github.com/docker/cli/docs/reference/commandline/key_generate.md does not exist, skipping
    WARN: /go/src/github.com/docker/cli/docs/reference/commandline/key_load.md does not exist, skipping
    WARN: /go/src/github.com/docker/cli/docs/reference/commandline/signer_add.md does not exist, skipping
    WARN: /go/src/github.com/docker/cli/docs/reference/commandline/signer_remove.md does not exist, skipping

This patch updates the script to accomodate subcommands that are more deeply
nested. While at it, some minor cleaning and linting issues were also addressed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-15 14:30:16 +01:00
Vincent Demeester 36c00b3c92 Merge pull request #1633 from silvin-lubecki/refactor-docker-cli-construction
Introduce functional arguments to NewDockerCli for a more stable API.
2019-01-28 15:39:34 +01:00
Vincent Demeester 2672072c19 Merge pull request #1633 from silvin-lubecki/refactor-docker-cli-construction
Introduce functional arguments to NewDockerCli for a more stable API.
2019-01-28 15:39:34 +01:00
Silvin Lubecki 22ad637367 Introduce functional arguments to NewDockerCli for a more stable API.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2019-01-28 14:52:58 +01:00