mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
Update the adoc table generation
This commit is contained in:
@@ -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")
|
||||
|
||||
4
docs/templates/ADOC.tmpl
vendored
4
docs/templates/ADOC.tmpl
vendored
@@ -15,9 +15,9 @@
|
||||
{{- end }}
|
||||
| {{.Type}}
|
||||
a| [subs=-attributes]
|
||||
{{.DefaultValue}}
|
||||
pass:[{{.DefaultValue}}]
|
||||
a| [subs=-attributes]
|
||||
{{.Description}}
|
||||
pass:[{{.Description}}]
|
||||
|
||||
{{- end }}
|
||||
|===
|
||||
|
||||
Reference in New Issue
Block a user