Move conditional for deprecation Link into go template

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2022-11-29 10:52:06 +01:00
parent e3043a7e7b
commit a88af41ae2
2 changed files with 15 additions and 18 deletions

View File

@@ -38,10 +38,7 @@ a| {{- range $i, $value := .EnvVars }}{{- if $i }} +
{{ end -}}
`{{- $value }}`
{{- end }} +
:is-deprecated: {{ .IsDeprecated }}
ifeval::[{is-deprecated} == true]
xref:deprecation-note[Deprecation Note]
endif::[]
{{ .DeprecationLink }}
a| [subs=-attributes]
++{{.Type}} ++
a| [subs=-attributes]