3
0

Options doc codegen tweaks

This commit is contained in:
Tomaž Jerman
2020-12-08 10:16:34 +01:00
parent 6929c25d3d
commit bf3bc2af68
3 changed files with 25 additions and 8 deletions
+13 -7
View File
@@ -8,22 +8,28 @@
// - {{ .Source }}
{{- end }}
= ENV options
{{ range .Definitions }}
== {{ .Docs.Title }}
= {{ .Docs.Title }}
{{ if .Docs.Intro }}
{{ .Docs.Intro }}
{{ end }}
{{- range .Properties }}
=== *{{ toUpper .Env }}* `{{ .Type }}`
== *{{ toUpper .Env }}*
=== Type
`{{ .Type }}`
{{ if or .Default .Description -}}
{{ if .Default -}}
Default::
`{{ .Default }}`
=== Default
`{{ .Default }}`
{{ end -}}
{{ if .Description -}}
Description::
{{ .Description }}
=== Description
{{ .Description }}
{{ end -}}{{ end -}}
{{ end }}{{ end }}