* Update some PaC content for v0.4.0 of @pulumi/policy
We renamed `validateTypedResource` to `validateResourceOfType` (though, the former is still available, just deprecated), and introduced built-in helpers for `validateStack`.
* Regenerate @pulumi/policy API docs for v0.4.0
* Add a "letter to your boss"
Inspired by the KubeCon letter to your boss, this is a little
email template someone can use to start a conversation with their
manager about using Pulumi in their organization.
* Apply suggestions from code review
Co-Authored-By: Justin Van Patten <jvp@justinvp.com>
Co-authored-by: Justin Van Patten <jvp@justinvp.com>
* Initial implementation of documentation feedback
* Fix typo
* Cleanup formatting and mobile layout
* Add tracking attributes to feedback buttons; use beforeunload event
* Address feedback
* Move feedback section to right nav; convert comment section to modal
* Mobile adjustments
* Make it play nicer visually with others
* Update modal text and add close button
* Fix typo
Co-Authored-By: Justin Van Patten <jvp@justinvp.com>
* Address feedback
* Revert back to using production segment key with environment control
Co-authored-by: Christian Nunciato <christian@pulumi.com>
Co-authored-by: Justin Van Patten <jvp@justinvp.com>
Because our language chooser doesn't show/hide language
elements for pages without tabs, some Go steps are hidden.
We tried to make that logic apply even when tabs aren't present,
but that had unintented consequences for regular content like
blogs. So, just move those steps to pages with tabs on them.
If a language has been chosen, unconditionally select it. This
ensures that, even in cases where there are no tabs, we will honor
the choice and hide/show divs/spans on the page.
* Do an editorial pass over programming model docs
This is an editorial pass over the programming model docs, as part
of #1618. This includes rearranging ordering to minimize forward
references, getting rid of anything that smells "TypeScript-only",
restructuring headers so the ToC is a bit more structured,
wordsmithing, fleshing out examples, and trying to simplify the
presentation of content -- while also embellishing where it helps.
This is not done. The Go and TypeScript pages are empty. There is
still quite a number of TypeScript-only hyperlinks and terminology.
* Add Vim swp files to gitignore
* Use shortcodes to cut down on language-specific text/links
This change adds some shortcodes for common language-specific
text and associated links.
For instance, outputs are Output in JS, Output<T> in TS,
Output[T] in Python, Output in Go, and Output<T> in C#, and go
to very different places hyperlink-wise.
Because of the way our language switcher JavaScript works, we
display the JS version by default until it kicks in and picks
up the user's choice. This avoids awkward flashes in which all
or none of the options are available or missing.
I'm not done applying this to all possible codes, but at least
it lays the foundation to start paying down this debt.
* Fix a couple hygiene issues
* Clarify conditional execution of apply
* Fix input shortcode
* Add shortcodes for most language-specific things
This eliminates most (all?) of the language-specific texts and
links in the programming model document, replaced with shortcodes.
* Fix up some loose ends
* Add Go language page and Get Started guides
* Fix linter errors
* Apply suggestions from code review
Co-Authored-By: Christian Nunciato <c@nunciato.org>
* Apply additional code review feedback
* Use spaces, not tabs.
* Use tailwind styles, not inline CSS.
Co-authored-by: Christian Nunciato <christian@pulumi.com>