From 9a211daa90f76c85fc96abb684079119d4f53ab6 Mon Sep 17 00:00:00 2001 From: mmattel Date: Wed, 6 Jul 2022 08:17:21 +0200 Subject: [PATCH] Update the adoc table generation --- docs/helpers/adoc-generator.go.tmpl | 6 +++--- docs/templates/ADOC.tmpl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/helpers/adoc-generator.go.tmpl b/docs/helpers/adoc-generator.go.tmpl index 775c17ec7..d091b0477 100644 --- a/docs/helpers/adoc-generator.go.tmpl +++ b/docs/helpers/adoc-generator.go.tmpl @@ -89,9 +89,9 @@ func GetAnnotatedVariables(s interface{}) []ConfigField { } v := fmt.Sprintf("%v", value.Interface()) td := strings.Split(env, ";") - re := regexp.MustCompile(`^(https?:\/\/)`) - v = re.ReplaceAllString(v,"\\$1") - re = regexp.MustCompile(`(https?:\/\/)`) + // re := regexp.MustCompile(`^(https?:\/\/)`) + // v = re.ReplaceAllString(v,"\\$1") + re := regexp.MustCompile(`(https?:\/\/)`) desc = re.ReplaceAllString(desc, "\\$1") re = regexp.MustCompile(`(\|)`) v = re.ReplaceAllString(v, "\\$1") diff --git a/docs/templates/ADOC.tmpl b/docs/templates/ADOC.tmpl index cf5ecf13d..74b0aef9d 100644 --- a/docs/templates/ADOC.tmpl +++ b/docs/templates/ADOC.tmpl @@ -15,9 +15,9 @@ {{- end }} | {{.Type}} a| [subs=-attributes] -{{.DefaultValue}} +pass:[{{.DefaultValue}}] a| [subs=-attributes] -{{.Description}} +pass:[{{.Description}}] {{- end }} |===