update adoc.tmpl

This commit is contained in:
mmattel
2022-11-28 23:10:43 +01:00
parent 0e8ef44756
commit c07dafabbd
+19 -15
View File
@@ -1,43 +1,47 @@
// set the attribute to true or leave empty, true without any quotes. // set the attribute to true or leave empty, true without any quotes.
:show-deprecation: {{ .HasDeprecations }} :show-deprecation: {{ .HasDeprecations }}
ifeval::[{show-deprecation} == true] ifeval::[{show-deprecation} == true]
[[deprecation-note]] [[deprecation-note]]
[caption=] [caption=]
[width="100%",cols="~,~,~,~",options="header"] [width="100%",cols="~,~,~,~",options="header"]
| === | |===
| Deprecation Version | | Deprecation Version
| Removal Version | | Removal Version
| Deprecation Info | | Deprecation Info
| Deprecation Replacment | | Deprecation Replacment
{{- range .Deprecations }} {{- range .Deprecations }}
| {{ .DeprecationVersion }} | {{ .DeprecationVersion }}
| {{ .RemovalVersion }} | {{ .RemovalVersion }}
| {{ .DeprecationInfo }} | {{ .DeprecationInfo }}
| {{ .DeprecationReplacement }} | {{ .DeprecationReplacement }}
| ===
{{- end }} {{- end }}
|===
endif::[] endif::[]
[caption=] [caption=]
.Environment variables for the {{ .ExtensionName }} service .Environment variables for the {{ .ExtensionName }} service
[width="100%",cols="~,~,~,~",options="header"] [width="100%",cols="~,~,~,~",options="header"]
| === | |===
| Name | | Name
| Type | | Type
| Default Value | | Default Value
| Description | | Description
{{- range .Fields}} {{- range .Fields}}
:is-deprecated: {{ .IsDeprecated }}
| {{- range $i, $value := .EnvVars }}{{- if $i }} + | a| {{- range $i, $value := .EnvVars }}{{- if $i }} +
{{ end -}} {{ end -}}
`{{- $value }}` `{{- $value }}`
{{- end }} + {{- end }} +
:is-deprecated: {{ .IsDeprecated }}
ifeval::[{is-deprecated} == true] ifeval::[{is-deprecated} == true]
xref:deprecation-note[Deprecation Note] xref:deprecation-note[Deprecation Note]
endif::[] endif::[]
a| [subs=-attributes] a| [subs=-attributes]
++{{.Type}} ++ ++{{.Type}} ++
a| [subs=-attributes] a| [subs=-attributes]
@@ -46,5 +50,5 @@ a| [subs=-attributes]
{{.Description}} {{.Description}}
{{- end }} {{- end }}
| === | |===