Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

121 lines
3.5 KiB
HTML
Raw Permalink Normal View History

2021-04-27 19:52:16 -07:00
{{ $cloud := .Get 0 }}
2021-04-27 19:52:16 -07:00
{{ $js := slice }}
{{ $ts := slice }}
{{ $py := slice }}
{{ $go := slice }}
{{ $cs := slice }}
{{/* Loop through all pages, sorting tutorials for the selected cloud into the appropriate language bucket. */}}
{{ range .Site.Pages }}
{{ if and (hasPrefix .Path (printf "docs/tutorials/%s/" $cloud)) (eq .Params.cloud $cloud) }}
{{ if eq "ts" .Params.language }}{{ $ts = $ts | append . }}{{ end }}
{{ if eq "js" .Params.language }}{{ $js = $js | append . }}{{ end }}
{{ if eq "py" .Params.language }}{{ $py = $py | append . }}{{ end }}
{{ if eq "go" .Params.language }}{{ $go = $go | append . }}{{ end }}
{{ if eq "cs" .Params.language }}{{ $cs = $cs | append . }}{{ end }}
2021-04-27 19:52:16 -07:00
{{ end }}
{{ end }}
2021-04-27 19:52:16 -07:00
<pulumi-choosable type="language" value="typescript">
<table width="100%">
<thead>
<tr>
2021-04-27 19:52:16 -07:00
<th>Tutorial</th>
</tr>
</thead>
<tbody>
2021-04-27 19:52:16 -07:00
{{ $both := (append $js $ts) }}
{{ if eq (len $both) 0 }}
<tr>
<td>None for this language.</td>
2021-04-27 19:52:16 -07:00
</tr>
{{ else }}
{{ range sort $both ".Params.h1" }}
<tr>
<td>
<a href="{{ .RelPermalink }}">{{ .Params.h1 }}</a>
2021-04-27 19:52:16 -07:00
</td>
</tr>
{{ end }}
{{ end }}
</tbody>
</table>
</pulumi-choosable>
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
2021-04-27 19:52:16 -07:00
<pulumi-choosable type="language" value="python">
<table width="100%">
<thead>
<tr>
2021-04-27 19:52:16 -07:00
<th>Tutorial</th>
</tr>
</thead>
<tbody>
2021-04-27 19:52:16 -07:00
{{ if eq (len $py) 0 }}
<tr>
<td>None for this language.</td>
2021-04-27 19:52:16 -07:00
</tr>
{{ else }}
{{ range sort $py ".Params.h1" }}
<tr>
<td>
<a href="{{ .RelPermalink }}">{{ .Params.h1 }}</a>
2021-04-27 19:52:16 -07:00
</td>
</tr>
{{ end }}
{{ end }}
</tbody>
</table>
</pulumi-choosable>
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
2021-04-27 19:52:16 -07:00
<pulumi-choosable type="language" value="go">
<table width="100%">
<thead>
<tr>
2021-04-27 19:52:16 -07:00
<th>Tutorial</th>
</tr>
</thead>
<tbody>
2021-04-27 19:52:16 -07:00
{{ if eq (len $go) 0 }}
<tr>
<td>None for this language.</td>
2021-04-27 19:52:16 -07:00
</tr>
{{ else }}
{{ range sort $go ".Params.h1" }}
<tr>
<td>
<a href="{{ .RelPermalink }}">{{ .Params.h1 }}</a>
2021-04-27 19:52:16 -07:00
</td>
</tr>
{{ end }}
{{ end }}
</tbody>
</table>
</pulumi-choosable>
<pulumi-choosable type="language" value="csharp">
<table width="100%">
2021-04-27 19:52:16 -07:00
<thead>
2021-02-17 08:55:28 -08:00
<tr>
2021-04-27 19:52:16 -07:00
<th>Tutorial</th>
</tr>
2021-04-27 19:52:16 -07:00
</thead>
<tbody>
{{ if eq (len $cs) 0 }}
<tr>
<td>None for this language.</td>
2021-04-27 19:52:16 -07:00
</tr>
{{ else }}
{{ range sort $cs ".Params.h1" }}
<tr>
<td>
<a href="{{ .RelPermalink }}">{{ .Params.h1 }}</a>
2021-04-27 19:52:16 -07:00
</td>
</tr>
{{ end }}
{{ end }}
</tbody>
</table>
</pulumi-choosable>