Skip to content
Snippets Groups Projects
Commit 734d736b authored by Daniel Holbach's avatar Daniel Holbach
Browse files

Remove ' command' from Flux CLI docs title


	Fixes: #1388

Signed-off-by: default avatarDaniel Holbach <daniel@weave.works>
parent 8ca65059
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ func docgenCmdRun(cmd *cobra.Command, args []string) error { ...@@ -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)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment