Skip to content

Commit

Permalink
Merge pull request #3464 from dgageot/hack-man
Browse files Browse the repository at this point in the history
Move man generation to hack folder
  • Loading branch information
balopat authored Jan 3, 2020
2 parents 0a208d5 + 4f8c29b commit 6296ed4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 6296ed4

Please sign in to comment.