Skip to content

Commit 3ae101f

Browse files
authored
Merge pull request #3991 from dvdksn/docs/refactor-docs-dir
docs: move doc generation scripts to subdir
2 parents 3a11830 + 1e3622c commit 3ae101f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/go.mod renamed to docs/generate/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/docker/cli/docs
1+
module github.com/docker/cli/docs/generate
22

33
// dummy go.mod to avoid dealing with dependencies specific
44
// to docs generation and not really part of the project.
@@ -10,4 +10,4 @@ go 1.16
1010
// github.com/docker/cli-docs-tool v0.5.0
1111
//)
1212
//
13-
//replace github.com/docker/cli v0.0.0+incompatible => ../
13+
//replace github.com/docker/cli v0.0.0+incompatible => ../../
File renamed without changes.

scripts/docs/generate-yaml.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ trap clean EXIT
2222
# install cli-docs-tool and copy docs/tools.go in root folder
2323
# to be able to fetch the required depedencies
2424
go mod edit -modfile=vendor.mod -require=github.com/docker/cli-docs-tool@${CLI_DOCS_TOOL_VERSION}
25-
cp docs/tools.go .
25+
cp docs/generate/tools.go .
2626
# update vendor
2727
./scripts/vendor update
2828
# build docsgen
29-
go build -mod=vendor -modfile=vendor.mod -tags docsgen -o /tmp/docsgen ./docs/generate.go
29+
go build -mod=vendor -modfile=vendor.mod -tags docsgen -o /tmp/docsgen ./docs/generate/generate.go
3030
)
3131

3232
mkdir -p docs/yaml

0 commit comments

Comments
 (0)