pulumi / registry

The global index of everything you can do with Pulumi.
https://www.pulumi.com/registry
Apache License 2.0
26 stars 119 forks source link

Auto-expand examples when linking to anchors? #947

Open joeduffy opened 4 years ago

joeduffy commented 4 years ago

I noticed that linking to a specific example using its anchor doesn't work quite as expected since the examples are collapsed by default. Is it possible to auto-expand examples when linking to their anchors? For example, see https://www.pulumi.com/docs/reference/pkg/aws/s3/bucket/?language=csharp#static-website-hosting.

cnunciato commented 2 years ago

Totally possible yes. There is an API on the examples component itself that toggles the expanded-ness of a given example. We should be able to use this component method from page script (rather than examine the URL from within the component) to make this work. (And apologies for not responding to this one sooner!)

susanev commented 2 years ago

oh its fine, it was transferred from docs, so who knows if triaging this was part of ur responsibility at the time