summaryrefslogtreecommitdiff
path: root/cmd/authelia-gen/cmd_docs_cli.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2024-03-24 00:26:22 +1100
committerGitHub <noreply@github.com>2024-03-24 00:26:22 +1100
commit2293872c70d41edf5153d588780f8dfa5fc8c876 (patch)
tree0f719b1dfe3d2e94b0be52cb660d9e8bf6876b3a /cmd/authelia-gen/cmd_docs_cli.go
parentfef27b6a741aa3aff5a143fa17fb39e819051618 (diff)
docs: simplify menu (#7006)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'cmd/authelia-gen/cmd_docs_cli.go')
-rw-r--r--cmd/authelia-gen/cmd_docs_cli.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/cmd/authelia-gen/cmd_docs_cli.go b/cmd/authelia-gen/cmd_docs_cli.go
index 393d6bc96..8dd3b3352 100644
--- a/cmd/authelia-gen/cmd_docs_cli.go
+++ b/cmd/authelia-gen/cmd_docs_cli.go
@@ -100,7 +100,7 @@ func genCLIDocWriteIndex(path, name string) (err error) {
weight := genCLIDocCmdToWeight(name)
- _, err = fmt.Fprintf(f, indexDocs, name, now.Format(dateFmtYAML), prefixCLI+name, weight)
+ _, err = fmt.Fprintf(f, indexDocs, name, now.Format(dateFmtYAML), weight)
return err
}
@@ -112,8 +112,6 @@ func prepend(input string) string {
parts := strings.Split(filename, "_")
- cmd := parts[0]
-
args := strings.Join(parts, " ")
weight := genCLIDocCmdToWeight(parts[0])
@@ -122,7 +120,7 @@ func prepend(input string) string {
weight += 5
}
- return fmt.Sprintf(prefixDocs, args, fmt.Sprintf("Reference for the %s command.", args), "", now.Format(dateFmtYAML), prefixCLI+cmd, weight)
+ return fmt.Sprintf(prefixDocs, args, fmt.Sprintf("Reference for the %s command.", args), "", now.Format(dateFmtYAML), weight)
}
func genCLIDocCmdToWeight(cmd string) int {
@@ -151,10 +149,6 @@ draft: false
images: []
sidebar:
collapsed: true
-menu:
- reference:
- parent: "cli"
- identifier: "%s"
weight: %d
toc: true
seo:
@@ -172,9 +166,6 @@ lead: "%s"
date: %s
draft: false
images: []
-menu:
- reference:
- parent: "%s"
weight: %d
toc: true
seo: