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 }} |===