From 5c7a6a603482efecb8518a5164a5a13a90a07e3d Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Fri, 15 Nov 2024 13:15:43 -0800 Subject: [PATCH] fix examples in config on website --- init/config/docusaurus.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init/config/docusaurus.go b/init/config/docusaurus.go index 632b40a..01bae86 100644 --- a/init/config/docusaurus.go +++ b/init/config/docusaurus.go @@ -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" }