Skip to content

Commit

Permalink
Update the adoc table generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmattel committed Jul 6, 2022
1 parent 2e64042 commit 9a211da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/helpers/adoc-generator.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions docs/templates/ADOC.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
{{- end }}
| {{.Type}}
a| [subs=-attributes]
{{.DefaultValue}}
pass:[{{.DefaultValue}}]
a| [subs=-attributes]
{{.Description}}
pass:[{{.Description}}]

{{- end }}
|===
Expand Down

0 comments on commit 9a211da

Please sign in to comment.