mirror of https://github.com/docker/cli.git
Merge pull request #4169 from thaJeztah/fix_mddocs
scripts/docs/generate-md.sh: fix location of generate code
This commit is contained in:
commit
443bcc652a
|
@ -5,7 +5,7 @@ Remove one or more containers
|
||||||
|
|
||||||
### Aliases
|
### Aliases
|
||||||
|
|
||||||
`docker container rm`, `docker rm`
|
`docker container rm`, `docker container remove`, `docker rm`
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ Remove one or more containers
|
||||||
|
|
||||||
### Aliases
|
### Aliases
|
||||||
|
|
||||||
`docker container rm`, `docker rm`
|
`docker container rm`, `docker container remove`, `docker rm`
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,11 @@ trap clean EXIT
|
||||||
# install cli-docs-tool and copy docs/tools.go in root folder
|
# install cli-docs-tool and copy docs/tools.go in root folder
|
||||||
# to be able to fetch the required depedencies
|
# 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}
|
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
|
# update vendor
|
||||||
./scripts/vendor update
|
./scripts/vendor update
|
||||||
# build docsgen
|
# 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
|
# yaml generation on docs repo needs the cli.md file: https://github.com/docker/cli/pull/3924#discussion_r1059986605
|
||||||
|
|
Loading…
Reference in New Issue