pulumi/pkg/codegen/docs/templates
Zaid Ajaj ad56486bf0
[docs] Emit example constructor syntax for resources in typescript, python, go and csharp (#15624)
# Description

This PR is an initial implementation of emitting constructor syntax of
resources into the docs for typescript, python, go and csharp.

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [x] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2024-03-21 13:41:07 +00:00
..
constructor_args.tmpl Remove leading and trailing whitespace in resource properties (#6959) 2021-05-04 17:59:30 -07:00
constructor_params.tmpl Extend API doc generation 2022-05-04 10:00:53 +02:00
enums.tmpl Fix deprecation note formatting (#15495) 2024-03-02 06:02:03 +00:00
examples.tmpl Extend API doc generation 2022-05-04 10:00:53 +02:00
function.tmpl [docsgen] Fix rendering of deprecated messages and text in description lists (#13773) 2023-08-26 17:36:28 +00:00
header.tmpl [codegen/docs] Update API docs templates to include layout front-matter param (#8242) 2021-10-17 22:36:31 -07:00
index.tmpl [codegen/docs] Update API docs templates to include layout front-matter param (#8242) 2021-10-17 22:36:31 -07:00
index_categories.tmpl remove icons 2023-06-09 14:13:11 -04:00
package_details.tmpl update package details template 2023-01-12 14:11:03 -08:00
properties.tmpl Fix deprecation note formatting (#15495) 2024-03-02 06:02:03 +00:00
read_inputs.tmpl Update the resource-docs templates 2020-03-30 14:38:29 -07:00
resource.tmpl [docs] Emit example constructor syntax for resources in typescript, python, go and csharp (#15624) 2024-03-21 13:41:07 +00:00
utils.tmpl Add data attribute tag for swifttype to resource property element (#9226) 2022-03-21 10:36:04 -07:00
yaml_constructor.tmpl Extend API doc generation 2022-05-04 10:00:53 +02:00