Logo
Explore Help
Sign In
iSharkFly-Docs/pulumi-hugo-cn
1
0
Fork 0
You've already forked pulumi-hugo-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
pulumi-hugo-cn/themes/default/layouts/shortcodes/latest-version.html

8 lines
377 B
HTML
Raw Permalink Normal View History

Cleanup the Changelog (#1458) * Cleanup the Changelog - Removed old entries that are being moved to the CHANGELOG.md in `pulumi/pulumi` repo. - Remove "Changelog" from TOC. The "Download and Install" page links to this page at the bottom. - Make the links in the table actually look like links. - Added a `changelog-table-row` shortcode (replacing the `sdk-links` shortcode), which will make it easier to add new rows to the table without introducing subtle broken anchor links. * Validate the content of the /static/latest-version file While making related changes here, I've added a test that will ensure no trailing newlines (or other whitespace) is added to the `latest-version` file, which may break dependencies that aren't resilient to it. We recently saw this in a PR and luckily the broken link checker caught it, but this makes the test more explicit.
2019-07-26 19:33:32 -07:00
{{- $latestVersionFile := "/static/latest-version" -}}
{{- $latestVersion := readFile $latestVersionFile -}}
{{/* The file must not contain whitespace or newlines, as dependencies may not be resilient. */}}
{{- if gt (len (findRE "\\s" $latestVersion)) 0 -}}
{{- errorf "%q must not contain whitespace or newlines" $latestVersionFile -}}
{{- end -}}
{{- $latestVersion -}}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 123ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API