Skip to content

Commit

Permalink
Merge pull request #4172 from thaJeztah/23.0_backport_fix_mddocs
Browse files Browse the repository at this point in the history
[23.0 backport] scripts/docs/generate-md.sh: fix location of generate code
  • Loading branch information
thaJeztah authored Apr 11, 2023
2 parents 9d4a21c + 2609bd2 commit 8b783cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 8b783cc

Please sign in to comment.