Skip to content

Commit

Permalink
fix examples in config on website
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Nov 15, 2024
1 parent 20ff63a commit 5c7a6a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion init/config/docusaurus.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,13 @@ func (h *Header) makeDocsTable(prefix string) string {
buf := bytes.Buffer{}
buf.WriteString(tableHeader)

hSuffix := ""
if h.Kind == list {
hSuffix = "_0_"
}

for _, param := range h.Params {
envVar := prefix + h.Prefix + param.EnvVar
envVar := prefix + h.Prefix + hSuffix + param.EnvVar
if param.Kind == list {
envVar += "0"
}
Expand Down

0 comments on commit 5c7a6a6

Please sign in to comment.