From 7fb29d1d65152413d25b8f4cfc8157678d951236 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Fri, 19 Jul 2024 09:14:00 +0200 Subject: [PATCH] add IntroductionVersion to global adoc output Signed-off-by: Christian Richter --- docs/helpers/templates/adoc-generator.go.tmpl | 1 + docs/templates/ADOC_global.tmpl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/helpers/templates/adoc-generator.go.tmpl b/docs/helpers/templates/adoc-generator.go.tmpl index a15108520..1e772f859 100644 --- a/docs/helpers/templates/adoc-generator.go.tmpl +++ b/docs/helpers/templates/adoc-generator.go.tmpl @@ -152,6 +152,7 @@ func main() { if len(env.Services) > 1 { tmplValues = append(tmplValues, map[string]interface{}{ "Name": env.Name, + "IntroductionVersion": env.IntroductionVersion, "Services": env.Services, "Description": env.Description, "DefaultValue": env.DefaultValue, diff --git a/docs/templates/ADOC_global.tmpl b/docs/templates/ADOC_global.tmpl index 424c01048..6c915f903 100644 --- a/docs/templates/ADOC_global.tmpl +++ b/docs/templates/ADOC_global.tmpl @@ -6,6 +6,7 @@ [width="100%",cols="30%,25%,~,~,~",options="header"] |=== | Name +| IV | Services | Type | Default Value @@ -13,6 +14,9 @@ {{ range . }} a| `{{ .Name }}` +a| [subs=-attributes] +++{{ .IntroductionVersion }} ++ + a| [subs=attributes+] {{- range .Services}} * xref:{s-path}/{{ . }}.adoc[{{ . }}] +