1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Merge pull request #1389 from dholbach/fix-1388

Remove ' command' from Flux CLI docs title
This commit is contained in:
Daniel Holbach
2021-05-06 10:00:56 +02:00
committed by GitHub

View File

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