mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Remove ' command' from Flux CLI docs title
Fixes: #1388 Signed-off-by: Daniel Holbach <daniel@weave.works>
This commit is contained in:
parent
8ca65059f7
commit
734d736bdf
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue