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

Move man generation to hack folder #3464

Merged
merged 1 commit into from
Jan 3, 2020
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 hack/generate-man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

cat \
docs/content/en/docs/references/cli/index_header \
<(go run cmd/skaffold/man/man.go) \
<(go run hack/man/man.go) \
> docs/content/en/docs/references/cli/_index.md
File renamed without changes.
4 changes: 2 additions & 2 deletions cmd/skaffold/man/man_test.go → hack/man/man_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ func TestPrintMan(t *testing.T) {
testutil.CheckContains(t, "Env vars", output)

// Compare to current man page
header, err := ioutil.ReadFile(filepath.Join("..", "..", "..", "docs", "content", "en", "docs", "references", "cli", "index_header"))
header, err := ioutil.ReadFile(filepath.Join("..", "..", "docs", "content", "en", "docs", "references", "cli", "index_header"))
testutil.CheckError(t, false, err)
header = bytes.Replace(header, []byte("\r\n"), []byte("\n"), -1)

expected, err := ioutil.ReadFile(filepath.Join("..", "..", "..", "docs", "content", "en", "docs", "references", "cli", "_index.md"))
expected, err := ioutil.ReadFile(filepath.Join("..", "..", "docs", "content", "en", "docs", "references", "cli", "_index.md"))
testutil.CheckError(t, false, err)
expected = bytes.Replace(expected, []byte("\r\n"), []byte("\n"), -1)

Expand Down