pulumi/pkg/codegen/docs/templates/constructor_params.tmpl
Justin Van Patten 48a1d3f696
[docgen] Fix horizontal scroll in python resource docs (#6801)
Add line breaks and whitespace to avoid long horizontal scrolls for Python constructor/function arguments. Also, include the new ResourceArgs constructor overload.
2021-04-17 15:33:23 -07:00

12 lines
785 B
Cheetah

{{ define "param_separator" }}<span class="p">,</span> {{ end }}
{{ define "py_param_separator" }}<span class="p">,</span>
{{ .Indent }}{{ end }}
{{ define "go_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p"> {{ .OptionalFlag }}</span>{{ template "linkify_param" .Type }}{{ end }}
{{ define "ts_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p">{{ .OptionalFlag }}:</span> {{ template "linkify_param" .Type }}{{ end }}
{{ define "csharp_formal_param" }}{{ template "linkify_param" .Type }}<span class="p">{{ .OptionalFlag }} </span><span class="nx">{{ .Name }}{{ .DefaultValue }}{{ end }}
{{ define "py_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p">:</span> {{ template "linkify_param" .Type }}{{ .DefaultValue }}{{ end }}