Skip to content
Snippets Groups Projects
Unverified Commit 37b60666 authored by Daniel Holbach's avatar Daniel Holbach Committed by GitHub
Browse files

Merge pull request #1389 from dholbach/fix-1388

Remove ' command' from Flux CLI docs title
parents 8ca65059 734d736b
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