Skip to content

Commit

Permalink
fix: add cases.NoLower option for we can get same effect to strings.T…
Browse files Browse the repository at this point in the history
…itle

Signed-off-by: wujunwei <wjw3323@live.com>
(cherry picked from commit f0037e5)
  • Loading branch information
wujunwei authored and mattfarina committed Oct 12, 2022
1 parent 802a229 commit 4844431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/helm/docs.go
Expand Up @@ -86,7 +86,7 @@ func (o *docsOptions) run(out io.Writer) error {
hdrFunc := func(filename string) string {
base := filepath.Base(filename)
name := strings.TrimSuffix(base, path.Ext(base))
title := cases.Title(language.Und).String(strings.Replace(name, "_", " ", -1))
title := cases.Title(language.Und, cases.NoLower).String(strings.Replace(name, "_", " ", -1))
return fmt.Sprintf("---\ntitle: \"%s\"\n---\n\n", title)
}

Expand Down

0 comments on commit 4844431

Please sign in to comment.