Skip to content

Commit

Permalink
fixup doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Jul 23, 2018
1 parent 60f6229 commit 3f9c90a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/generated/.files_generated
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oc_by_example_content.adoc
3 changes: 3 additions & 0 deletions docs/generated/oc_by_example_content.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This file is autogenerated, but we've stopped checking such files into the
repository to reduce the need for rebases. Please run hack/generate-docs.sh to
populate this file.
5 changes: 4 additions & 1 deletion tools/gendocs/gen_openshift_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@ func main() {
cmd := cli.NewCommandCLI("oc", "oc", &bytes.Buffer{}, out, ioutil.Discard)
kcmdutil.AddPrinterFlags(cmd)

gendocs.GenDocs(cmd, outFile)
if err := gendocs.GenDocs(cmd, outFile); err != nil {
fmt.Fprintf(os.Stderr, "failed to generate docs: %v\n", err)
os.Exit(1)
}
}

0 comments on commit 3f9c90a

Please sign in to comment.