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 -}}