pulumi/pkg/codegen
Praneet Loke 22aeaa43b1
Move resource docs index file generation to Go templates (#4308)
* Add new templates for generating index files. Remove the now irrelevant code.

* Add comment for generating index files by deduping module names. Use the path format of a module name as the link.

* Add a trailing slash for module links in the index page.

* Move the categories rendered in the index file into their own template file. Handle kubernetes provider specific module name conversion while generating parent modules.

* Fix issue with the k8s provider resource being generated as a module rather than a resource on the package-level index page.

* Show the deprecation message of a resource at the top of the document.

* Move k8s specific things to its own file.

* Add title attribute to the list items. Show the last part of a module name, in case it contains path separators

* Lookup the package name from the Go language info object for k8s then use that to lookup the C# namespace.

* Move the logic for cleaning a property type string for display names to a separate function.

* Export the title function from go and dotnet code generators for use in the resource doc generator. Use the title function from the respective lang code gens to match the correct title case used there. Fix issue with the Kubernetes namespace not being stripped for C# property type strings.

* Skip including apiVersion and kind as input properties for Kubernetes until pulumi-kubernetes#1062 is merged.
2020-04-06 17:01:33 -07:00
..
docs Move resource docs index file generation to Go templates (#4308) 2020-04-06 17:01:33 -07:00
dotnet Move resource docs index file generation to Go templates (#4308) 2020-04-06 17:01:33 -07:00
go Move resource docs index file generation to Go templates (#4308) 2020-04-06 17:01:33 -07:00
hcl2 Remove an unused import 2020-04-02 22:09:50 -07:00
nodejs Update resource docs generator to handle some k8s cases (#4270) 2020-04-03 11:26:52 -07:00
python Add a code generator for Python programs. (#4285) 2020-04-02 23:29:05 -07:00
schema Add schema support for constant values (#4283) 2020-04-02 21:47:07 -06:00
docs.go Remove non-relevant examples and empty examples section from docs comments (#4184) 2020-03-26 10:30:04 -07:00
docs_test.go Remove non-relevant examples and empty examples section from docs comments (#4184) 2020-03-26 10:30:04 -07:00
utilities.go Appease the linter 2020-04-02 21:43:03 -07:00