From 5cebac48f75c338210c9ccd16dfff896ce3a6e7b Mon Sep 17 00:00:00 2001 From: Kian Parvin Date: Tue, 28 Jan 2025 12:49:36 +0200 Subject: [PATCH] chore: update doc headings Update doc headings from UpperCase() to LowerCase( ). E.g. a command like `juju add-controller` would receive a title of `ADD-CONTROLLER` but is now `juju add-controller` to better reflect the CLI usage. This shouldn't affect Juju documentation because there the title is often excluded since each command is documented on a different page, but for other tools using this package the title is more useful. --- documentation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation.go b/documentation.go index 2e370f88..f777cd69 100644 --- a/documentation.go +++ b/documentation.go @@ -357,7 +357,7 @@ func (c *documentationCommand) linkForCommand(cmd string) string { func (c *documentationCommand) formatCommand(ref commandReference, title bool, commandSeq []string) string { var fmtedTitle string if title { - fmtedTitle = strings.ToUpper(strings.Join(commandSeq[1:], " ")) + fmtedTitle = strings.ToLower(strings.Join(commandSeq, " ")) } var buf bytes.Buffer