Provide MD checklists for the changelog (#1937)

* Output changelog checklists

Fixes: #1682
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
Johannes Marbach 2024-09-27 14:00:00 +02:00 committed by GitHub
parent ace2712719
commit 00af39ecca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 219 additions and 151 deletions

View file

@ -0,0 +1,4 @@
{{ .RawContent
| replaceRE "\n- " "\n- [ ] "
| replaceRE "<!--(.|\\s)*?-->\n?" ""
| replaceRE "<tr><th>Checklist.*\n" "" }}

View file

@ -1,19 +0,0 @@
{{/*
This template is used to provide different content for the unstable spec
version and for a versioned release.
*/}}
{{ $status := .Site.Params.version.status }}
{{ if eq $status "unstable"}}
<p>This is the <strong>unstable</strong> version of the Matrix specification.</p>
<p>This changelog lists changes made since the last release of the specification.</p>
{{ else }}
<p>This is version <strong>v{{ .Site.Params.version.major }}.{{ .Site.Params.version.minor }}</strong> of the Matrix specification.</p>
{{ end }}

View file

@ -1,10 +1,8 @@
{{/*
This template is used to render all of the changelog sections under
"content/changelogs"
This template is used to redirect the changelog section under
"content/changelogs" to the latest version's changelog page.
*/}}
{{ with .Page.Resources.Match "*.md" }}
{{ range ((sort . "Params.date" "desc")) }}
{{ .RenderShortcodes }}
{{ end }}
{{ with index .Page.RegularPages.ByDate.Reverse 0 }}
<meta http-equiv="refresh" content="0; url={{ .Permalink }}" />
{{ end }}