Skip to content
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

scripts/docs/generate-md.sh: fix location of generate code #4169

Merged
merged 2 commits into from
Apr 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference/commandline/container_rm.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Remove one or more containers

### Aliases

`docker container rm`, `docker rm`
`docker container rm`, `docker container remove`, `docker rm`

### Options

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/rm.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Remove one or more containers

### Aliases

`docker container rm`, `docker rm`
`docker container rm`, `docker container remove`, `docker rm`

### Options

Expand Down
4 changes: 2 additions & 2 deletions scripts/docs/generate-md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ trap clean EXIT
# install cli-docs-tool and copy docs/tools.go in root folder
# to be able to fetch the required depedencies
go mod edit -modfile=vendor.mod -require=github.com/docker/cli-docs-tool@${CLI_DOCS_TOOL_VERSION}
cp docs/tools.go .
cp docs/generate/tools.go .
# update vendor
./scripts/vendor update
# build docsgen
go build -mod=vendor -modfile=vendor.mod -tags docsgen -o /tmp/docsgen ./docs/generate.go
go build -mod=vendor -modfile=vendor.mod -tags docsgen -o /tmp/docsgen ./docs/generate/generate.go
)

# yaml generation on docs repo needs the cli.md file: https://github.com/docker/cli/pull/3924#discussion_r1059986605
Expand Down