mirror of
https://github.com/helm/helm.git
synced 2026-04-22 06:37:10 -04:00
Merge pull request #11274 from wujunwei/fix-case-title-smaller-all
bugfix: add cases.NoLower opt for we can get same effect to strings.Title
This commit is contained in:
commit
a48b87f32a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue