pulumi/pkg/codegen/docs/templates/enums.tmpl
Christian Nunciato 3b8a0dd3e3
Remove leading and trailing whitespace in resource properties (#6959)
* Remove leading and trailing whitespace in resource properties

* Make tests pass

* Add PULUMI_ACCEPT support to docs gen tests

* Handle a couple more places

Co-authored-by: Pat Gavlin <pat@pulumi.com>
2021-05-04 17:59:30 -07:00

16 lines
595 B
Cheetah

{{ define "enums" }}
{{- range $lang, $enums := . }}
{{ print "{{% choosable language" }} {{ print $lang }} {{ print "%}}" }}
<dl class="tabular">
{{- range . -}}
<dt>{{- htmlSafe .DisplayName -}}</dt>
<dd>{{- htmlSafe .Value }}{{- if .Comment }}{{ print "{{% md %}}" -}}{{- htmlSafe .Comment -}}{{- print "{{% /md %}}" }}{{ end -}}{{- if .DeprecationMessage }}<p class="property-message">Deprecated: {{ print "{{% md %}}" -}}{{- htmlSafe .DeprecationMessage -}}{{- print "{{% /md %}}" -}}</p>{{- end -}}</dd>
{{- end -}}
</dl>
{{ print "{{% /choosable %}}" }}
{{- end }}
{{- end }}