165 Commits

Author SHA1 Message Date
Joe Duffy
ed17637d7c Use next page title as the button in Getting Started (#3187)
* Use next page title as the button in Getting Started

This changes the "NEXT STEP >" button to use the title of the
next page in the flow, like "INSTALL PULUMI >", etc. The theory
is that this is more enticing to click as well as clearly
communicating what comes next.

As part of this, I changed the "CONFIGURE >" step to be a little
clearer; for now, I chose "CONFIGURE CLOUD ACCESS >" for AWS,
Azure, and GCP, and "CONFIGURE CLUSTER ACCESS >" for Kubernetes.

* Change Configure X buttons
2020-05-01 13:11:00 -07:00
Christian Nunciato
6fc21ca1eb Improve the layout of the API Reference page (#3166) 2020-04-29 16:48:57 -07:00
Christian Nunciato
b8a74750d2 Specify the options in the langfile shortcode (#2922)
* Specify the options in the langfile shortcode
* Set types and options on shortcode choosers
2020-04-13 14:27:34 -07:00
Justin Van Patten
fd87b31ce3 Add Python content to PaC docs (#2910) 2020-04-13 10:59:51 -07:00
Justin Van Patten
5dca4fb495 Update language around Node.js version support (#2875) 2020-04-07 12:30:10 -07:00
Mikhail Shilkov
75eef2aa5c Shortcode 2020-04-07 14:26:31 +02:00
Mikhail Shilkov
6a7edefb4d Merge pull request #2810 from pulumi/mikhailshilkov/dotnet-code
Update .NET code samples in docs
2020-04-03 22:44:38 +02:00
Praneet Loke
fae3bbdba3 Regenerate AWS, Azure (AD), GCP resource docs (#2820)
* Defer call glog.Flush in tools/resourcedocsgen.

* Allow passing a provider name to scripts/gen_resource_docs.sh.

* Don't use markdownify in the inner example shortcode.

* Use master branch of provider repos instead of calling update_repos.sh temporarily.

* Regen GCP resource docs with master.

* Regen Azure AD resource docs with master.

* Regen Azure resource docs with master.

* Regen AWS resource docs with master.
2020-04-02 13:03:48 -07:00
Mikhail Shilkov
b27a7dd8c0 Update .NET code samples in docs 2020-04-01 17:55:46 +02:00
Evan Boyle
6bcdc385bc update go aws/gcp/azure getting started to use go modules (#2792) 2020-03-30 22:18:44 -07:00
Christian Nunciato
891c533fec Resource docs UX (#2746) 2020-03-30 15:19:21 -07:00
Christian Nunciato
d2a9e0b0cb Add examples shortcodes (#2729)
These don’t do anything yet — they just render whatever’s passed into them.

Signed-off-by: Christian Nunciato <c@nunciato.org>
2020-03-24 08:52:25 -07:00
Christian Nunciato
27c9c296ad Use the new language chooser (#2642)
Signed-off-by: Christian Nunciato <c@nunciato.org>
2020-03-20 09:32:19 -07:00
Christian Nunciato
12d18debb7 Add Stencil.js for web components (#2626)
* Add Stencil.js for web components
* Address feedback
2020-03-11 10:10:05 -07:00
Sophia Parafina
b244acb50e fix #1764 (#2184)
Updated python sections for Getting Started
2020-03-04 07:01:39 -08:00
Evan Boyle
4a495916c9 update go aws getting started docs (#2480) 2020-02-19 19:05:21 -08:00
Justin Van Patten
0120f8ac9e Exclude download link for Windows v1.10.0 (#2410) 2020-02-08 07:03:45 -08:00
Zack Chase
099ee039c2 Add language to tutorial page title (#2288)
* Add language to tutorial title

* Assign name parts to variables

* Regenerate tutorials

* Fix typo on gcp ruby tutorial
2020-01-27 15:24:45 -08:00
Joe Duffy
911188968d Do an editorial pass over programming model docs (#2241)
* 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>
2020-01-21 19:34:59 -08:00
Zack Chase
3e054d0ea3 Add event tracking to link clicks (#2199)
* Add link linter script

* Add build commands for linting links

* Add linting to start of serve script

* Add tracking ids to links

* Add tracking id to links

* Finish adding tracking ids to remaining html links

* Add front labels to lint results

* Add some checks to function inputs; address feedback

* Add checks that the element exists before sending tracking event

* Add urlize to dynamically created tracking ids

* Switch to generating ids instead of hardcoding

* Do not encode strings when generating link tracking ids

* Convert to use data-track attribute instead of data-tracking-id

* Remove link linter

* Fix duplicate read more tag

* Revert breadcrumb html to be one line to eliminate extra space

* Remove unused package

* Update g suite name convention on tracking id

Co-Authored-By: Christian Nunciato <c@nunciato.org>

Co-authored-by: Christian Nunciato <christian@pulumi.com>
2020-01-15 12:51:13 -08:00
Justin Van Patten
59871869c7 Remove superfluous ".md" from relref links (#2196)
Hugo doesn't require it and currently in some cases we specify it and other cases we do not. This change makes us consistent.
2020-01-07 14:38:13 -05:00
Mike Metral
8b2d3898d6 k8s-language: fix is-active class tag 2019-11-13 11:38:32 -08:00
Mike Metral
c5bb1fddf4 shortcode(k8s-language): add noyaml option 2019-11-13 11:38:32 -08:00
Mike Metral
4768c79179 styling: make TS default k8s-language choice 2019-11-13 11:38:32 -08:00
Mike Metral
1c44736f91 Fix k8s-language chooser titles and missing sections 2019-11-13 11:38:32 -08:00
Mike Metral
cbc57678f9 Add k8s-language chooser shortcode 2019-11-13 11:38:32 -08:00
Mike Metral
905fd33c72 Add cloud chooser shortcode 2019-11-13 11:38:32 -08:00
CyrusNajmabadi
a2989fa236 Update layouts/shortcodes/install-dotnet.html
Co-Authored-By: Justin Van Patten <jvp@justinvp.com>
2019-11-05 14:59:19 -08:00
CyrusNajmabadi
03dbdc4833 Update layouts/shortcodes/install-dotnet.html
Co-Authored-By: Justin Van Patten <jvp@justinvp.com>
2019-11-05 14:59:07 -08:00
Cyrus Najmabadi
b22b128def Update docs 2019-11-04 11:51:32 -08:00
Cyrus Najmabadi
561df4a037 tweak 2019-11-04 11:48:10 -08:00
Justin Van Patten
cfd8d8f55f Lang chooser support for .NET/C# 2019-10-31 15:53:36 -07:00
Justin Van Patten
be92efd7ee Add missing install-dotnet shortcode 2019-10-31 15:53:36 -07:00
Maria Bermudez
53e4d66312 AWS Tutorials Cleanup (#1786)
* Add shortcode for summary
Update cleanup shortcode
Update Containers on Fargate tutorial
Update webserver tutorial to use shortcode

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Clean up REST API tutorial

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Fix broken link and remove extra spaces

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Final featured tutorial cleanup for AWS

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Fix 1640

* Address PR feedback
2019-09-30 12:46:19 -07:00
Mikhail Shilkov
e65c1f02d9 How To Build Globally Distributed Applications with Azure Cosmos DB (#1777)
Co-Authored-By: Justin Van Patten <jvp@justinvp.com>
Co-Authored-By: Eric Rudder <ericrudder@users.noreply.github.com>
Co-Authored-By: Christian Nunciato <christian@pulumi.com>
2019-09-24 12:34:23 -07:00
Maria Bermudez
be9ae3fc81 EC2 Webserver Tutorial Cleanup (#1763)
* Clean up EC2 webserver tutorial
Add shortcode for multi-language prerequisites
Add shortcode for GitHub buttons for multi-language examples

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Pull in tutorial title updates

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Clean up EC2 webserver tutorial

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Fix broken link

- Use ungreedy matches for links.
- Don't attempt to fix-up links that start with "../"
2019-09-23 11:33:04 -07:00
Justin Van Patten
e8ed522107 Rerun mktutorial (#1754)
Pull in latest changes from pulumi/examples (fixed-up links)
2019-09-17 11:23:14 -07:00
Maria Bermudez
0e281ee704 Fixes 1747 (#1748)
* Fixes 1747

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Update content/docs/get-started/gcp/configure.md

Co-Authored-By: Justin Van Patten <jvp@justinvp.com>

* Update layouts/shortcodes/cli-note.html

Co-Authored-By: Justin Van Patten <jvp@justinvp.com>

* Add CLI note to "Create a New Project"
2019-09-16 18:56:29 -07:00
Justin Van Patten
dd54d453f2 Avoid more 302 redirects (#1746)
And some related cleanup (use `relref`) where I saw it.
2019-09-16 16:42:34 -07:00
Justin Van Patten
866dc29ad9 mktutorial template improvements (#1743)
- Fix left alignment of "Edit on this Page" and "Request a Change"
- Remove "Edit on this Page" for generated pages
- Add "WARNING: this was generated by a tool" comment to generated pages
- Use Tailwind for styles
2019-09-16 10:17:12 -07:00
Maria Bermudez
d058a12e45 A very crude implementation of the glossary (#1547)
* A very crude implementation of the glossary
No real styling has been applied yet, but the idea is you get a list of all the terms with anchor links to the definition and relevant documentation pages. Have to look into why it's not generating a right TOC for the H2 (my theory is because it is declared in the shortcode file rather than glossary.md?

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Add sorting

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Address feedback

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Escape quotes

* Add initial list of terms
Add anchorize function

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Remove duplicate entry

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Remove extra spaces

* Add initial list of terms
Add anchorize function

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Remove duplicate entry

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Remove extra spaces

* Use 3 columns and other cleanup

- 3 columns for term index
- Use shortcode instead of `if` check in `single.html` layout
- Minor cleanup

* Address feedback

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>
2019-09-09 13:56:35 -07:00
Praneet Loke
6f7a0067d6 Add a trailing slash to the tutorial URL (#1702)
* Add a trailing slash to the tutorial URL.

* Regenerate tutorial cloud index pages.
2019-09-06 10:26:22 -07:00
Praneet Loke
5af6e1df20 Fix mktutorial tool to detemine the correct Pulumi.yaml path for Deploy With Pulumi buttons (#1676)
* Add a new property in the tutorial template to set the correct URL for the Deploy With Pulumi button.

* Regenerate tutorials.

* Detect Deploy With Pulumi button links and use its destination as the PulumiTemplateURL.
2019-09-06 08:36:36 -07:00
Maria Bermudez
5b3d4fcc14 SAML updates (#1644)
* - Final cleanup
- Remove required shortcode and inline span tag instead

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Address feedback
Update Guides landing page

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* - Update SAML index page
- Rename SSO page
- Add SSO page as required reading for integration guides
- Edit guides

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Replace Pulumi Cloud Console with Pulumi Console

* Final cleanup

* Update warning to yellow
Present SAML settings in table format for consistency (per #1608)

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Address feedback

* Fix broken relref links
Clean up text

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Fix final broken link

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Fix breadcrumb for intro overview

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>
2019-09-04 17:21:43 -07:00
Justin Van Patten
42f9a4cb50 Increase the Hugo timeout limit from 10 seconds to 30 and re-enable broken link checker (#1662)
* Increase the Hugo timeout limit from 10 seconds to 30

This should mitigate the `timed out initializing value` for large API docs pages.

* Re-enable the broken link checker

* Fix broken links

Fix broken links that were introduced while the broken link checker was
temporarily disabled.
2019-08-30 12:25:07 -07:00
Joe Duffy
5a0713313b Add an OS chooser (#1661)
This change adds an OS chooser similar to what we have for languages.
This is then used for various installation pages to offer the end user
the ability to choose something other than the default that we've
detected -- in addition to making that choice sticky using cookies.

Most of the same code for the language chooser is refactored and
reused, although some of it had to remain specific to languages due
to the special case of hiding/showing code blocks.

Fixes #1394.
2019-08-29 17:22:07 -07:00
Maria Bermudez
251be170cb Console Follow-Ups (#1616)
* - Rework Console landing page
- Update Account, Editions, Organizations pages
- Remove Accounts index page
- Start working on Project and Stack Management page

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Update content/docs/intro/console/_index.md

Co-Authored-By: Joe Duffy <joe@pulumi.com>

Update content/docs/intro/console/accounts/account.md

Co-Authored-By: Joe Duffy <joe@pulumi.com>

Update content/docs/intro/console/accounts/account.md

Co-Authored-By: Joe Duffy <joe@pulumi.com>

* Address feedback
Address #1612

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Add aliases based on folder rename

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* More progress on collaboration topics

* Final edits

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Replace instances of Pulumi Cloud Console with Pulumi Console

Minor edit
2019-08-29 14:09:44 -07:00
Joe Duffy
a8ace1b150 Add auto-generated tutorials and indexes (#1620)
This change adds auto-generated tutorials, using our [examples repo](https://github.com/pulumi/examples) as its source. Namely, we scrape the README.mds. We do some on-the-fly rewriting of certain content to make it work on the docs website -- including adding appropriate links back to the GitHub source code -- however, for the most part, the content is taken as-is. There are plenty of examples that need to be tidied up for consistency, to make the titles better, and so on, but this seems like a significant overall improvement so we plan to land roughly as-is.

* Add auto-generated tutorials and indexes

* Update URLs to use new post-ToC update structure

* Add a Featured Tutorials section to AWS

* Add curated "Featured Tutorials" sections

* Remove numbers from tutorial titles

* Add links to the tutorials source code

* Remove "all tutorials" index

* Don't link to AKS from GCP tutorials page

* Add a VIEW CODE button

And also wordsmith some of the "get source code first" note.

* Use linktitle for shorter titles

This ensures that the navigation name and the breadcrumb match.

* Update text for requesting a new tutorial

* Add mktutorial to `make gen`

* Add a nicer tutorials landing page

* Simplify the VIEW CODE button

* Rewrite relative Markdown links

This change automatically rewrites Markdown links that are
relative to our GitHub repo, so that we don't end up with broken
links in the resulting documentation website.

* Fix some broken links

* Ignore some example links

Our examples contain a lot of illustrative links that are either
synthetic or not meant to be publicly accessed. Ignore them during
broken link checking.
2019-08-28 09:10:09 -07:00
Maria Bermudez
648ec757a3 [WIP] More "Get Started" Follow-ups (#1517)
* Add intro text and icons
Add shortcode for intro links
Clean up index page for Kubernetes cloud

Address feedback

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Add intro text and icons
Add shortcode for intro links
Clean up index page for Kubernetes cloud

Address feedback

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Clean up content

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Clean up crud

* Rebase

* Clean up content

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Add cloud intro shortcode
More text cleanup
Add suggested installation links for Python and Node.js (#1178)

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Update content/docs/quickstart/aws/create-project.md

Co-Authored-By: Justin Van Patten <jvp@justinvp.com>

* Address feedback

* Rebase

* Rebase continuation

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Fix indentation issue

* Remove crud

* Replace pulumi.com with Pulumi Service

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>
2019-08-26 13:41:46 -07:00
Maria Bermudez
5b3e51460b New TOC and breadcrumbs (#1563) 2019-08-23 14:22:47 -07:00