Merge pull request #1389 from dholbach/fix-1388
Remove ' command' from Flux CLI docs title
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user