From b1ab575a3e201b6d6c4497447fe7d44a149ee9fa Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 3 May 2024 21:50:56 +0200 Subject: [PATCH] add docs data template --- templates/docs-data.yaml.tmpl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 templates/docs-data.yaml.tmpl diff --git a/templates/docs-data.yaml.tmpl b/templates/docs-data.yaml.tmpl new file mode 100644 index 0000000..e453a95 --- /dev/null +++ b/templates/docs-data.yaml.tmpl @@ -0,0 +1,18 @@ +--- +{{- if .GlobalArgs }} +properties: +{{- range $v := .GlobalArgs }} + - name: {{ $v.Name }} + {{- with $v.Description }} + description: | + {{ . | ToSentence }} + {{- end }} + {{- with $v.Type }} + type: {{ . }} + {{- end }} + {{- with $v.Default }} + defaultValue: {{ . }} + {{- end }} + required: {{ default false $v.Required }} +{{ end -}} +{{ end -}}