From: Nicolas Peugnet Date: Tue, 18 Feb 2025 23:12:18 +0100 Subject: Only generate manual pages from the docs generator The rest of the files (md and yaml) are already generated, but we need to generate the manual pages. Thus, we add an additional format and set it as the only one to generate. Forwarded: not-needed --- docs/yaml/main/generate.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/yaml/main/generate.go b/docs/yaml/main/generate.go index 0908616..1905588 100644 --- a/docs/yaml/main/generate.go +++ b/docs/yaml/main/generate.go @@ -54,6 +54,10 @@ func generateDocs(opts *options) error { if err := tool.GenYamlTree(cmd); err != nil { return err } + case "man": + if err := tool.GenManTree(cmd); err != nil { + return err + } case "md": if err := tool.GenMarkdownTree(cmd); err != nil { return err @@ -93,7 +97,7 @@ func main() { opts := &options{ source: filepath.Join(cwd, "docs", "reference"), target: filepath.Join(cwd, "docs", "reference"), - formats: []string{"yaml", "md"}, + formats: []string{"man"}, } fmt.Printf("Project root: %s\n", opts.source) fmt.Printf("Generating yaml files into %s\n", opts.target)