We know that resource documentation is one of the ...
# announcements
w
We know that resource documentation is one of the most important areas of the Pulumi docs site for most Pulumi users, and we've heard the feedback that there is room to improve on these resource docs! Yesterday, we took a major step on rolling out a brand new approach to resource docs for Pulumi. šŸŽ‰ These new docs are resource-oriented instead of API-oriented, and are presented as a single page per resource for easier reading, discovery, and navigation. They also support switching on different Pulumi languages inline. API docs for each language are still available, and are deep-linked into from these resource docs. But in general we expect to lead with these resource-oriented docs throughout our content as canonical, language-agnostic reference for each Pulumi resource. We've rolled out these new docs so far for AWS, Azure and GCP, with the rest of the providers on their way soon. We're also continuing to work on many more improvements on top of these new docs, so expect to continue to see improvements over the coming days and weeks. (Before you ask - Kubernetes docs are coming next!) We'd love your feedback on the new docs either in #docs, in GitHub, or via the šŸ‘/šŸ‘Ž buttons on the site. Here are a few pointers: ā€¢ An example resource: https://www.pulumi.com/docs/reference/pkg/aws/sqs/queue/ ā€¢ AWS package: https://www.pulumi.com/docs/reference/pkg/aws/ ā€¢ Azure package: https://www.pulumi.com/docs/reference/pkg/azure/ ā€¢ GCP package: https://www.pulumi.com/docs/reference/pkg/gcp/ ā€¢ Root API reference with links to all of these: https://www.pulumi.com/docs/reference/pkg/
partypus 8
šŸ‘ 9
šŸ˜ 5
šŸŽ‰ 15
Here's a birds-eye view of the new content layout.
g
This approach is fantastic. Is there anyway to consume the documentation template as a library author for my `ComponentResource`s?
w
@great-byte-67992 not yet - but we will be adding that! This documentation is all driven off of a new canonical language-agnostic schematization of the Pulumi resource model. That schema doesnā€™t yet represent component resources, but weā€™ve designed it with the intention to extend to components in the near future.
g
Thatā€™d be amazing. Iā€™m currently using mkdoc + typedoc for kloudlib but iā€™d love to use something that feels more pulumi native so that users can get a consistent documentation experience.
b
The new doc is very clear ! Great improvement šŸ‘ Iā€™ll add below some feedbacks
Page naviguation
šŸ‘ 1
I think also that right menu could be improved. Current menu :
šŸ‘ 1
resources, datasources and types are mixed
šŸ‘ 1
Iā€™d prefer (my opinion) something like:
Copy code
- Virtual Machine resource
    - Arguments
    - Outputs
- Data sources
   - Lookupā€¦
   - ā€¦
- Supporting types
c
https://www.pulumi.com/docs/reference/pkg/ still has the issue of calling everything a cloud provider.
w
@cool-egg-852 out of curiosity - what name would you prefer to see used here?
c
Just like TF, everything is a provider, then you have major cloud, cloud, infrastructure software, network, vcs, database, etc.
w
@boundless-airport-99052 thanks for the notes. On the ā€œnavigationā€ point - is that about wanting anchors on the headers so you can deep link to them? On the nav structure - we could definitely add some more structure there. Note though that the ā€œLoookupā€ section is not about ā€œdata sourcesā€ (in the Terraform sense) but about resource getters. The ā€œdata sourcesā€ are on separate pages listed under ā€œfunctionsā€.
@cool-egg-852 understood - we will be significantly restructuring that main reference docs landing page as we roll out the remaining new reference docs pages and will be looking to add some more substructure around the list of all providers. Thanks.
šŸ‘ 1
b
Hi @white-balloon-205, I donā€™t think that we currently can select a specific version of the provider doc. For example, there lot of changes between azure provier 1 and 2, and people on version 1 will not understand why the doc is not sync with their version.
w
@boundless-airport-99052 Yes - that is right - we currently just have a single version synced with the latest released version. We would definitely like to be able to show other versions as well - especially when there are significant major-version bumps like with Azure. This is something we'll be adding after the initial wave of work on these new docs.
šŸ‘ 1