Remove ' command' from Flux CLI docs title

Fixes: #1388

Signed-off-by: Daniel Holbach <daniel@weave.works>
pull/1389/head
Daniel Holbach 4 years ago
parent 8ca65059f7
commit 734d736bdf

@ -59,7 +59,7 @@ func docgenCmdRun(cmd *cobra.Command, args []string) error {
func frontmatterPrepender(filename string) string { func frontmatterPrepender(filename string) string {
name := filepath.Base(filename) name := filepath.Base(filename)
base := strings.TrimSuffix(name, path.Ext(name)) base := strings.TrimSuffix(name, path.Ext(name))
title := strings.Replace(base, "_", " ", -1) + " command" title := strings.Replace(base, "_", " ", -1)
return fmt.Sprintf(fmTemplate, title) return fmt.Sprintf(fmTemplate, title)
} }

Loading…
Cancel
Save