Skip to content

Commit

Permalink
fix(clidoc): improve link generator (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Aug 6, 2020
1 parent 6136a89 commit 1da1886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clidoc/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Generate(cmd *cobra.Command, args []string) error {
}

func trimExt(s string) string {
return strings.TrimSuffix(s, filepath.Ext(s))
return strings.ReplaceAll(strings.TrimSuffix(s, filepath.Ext(s)), "_", "-")
}

func generate(cmd *cobra.Command, dir string, navItems *[]string) error {
Expand Down

0 comments on commit 1da1886

Please sign in to comment.