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:
parent
ace2712719
commit
00af39ecca
22 changed files with 219 additions and 151 deletions
4
layouts/_default/single.checklist.md
Normal file
4
layouts/_default/single.checklist.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ .RawContent
|
||||
| replaceRE "\n- " "\n- [ ] "
|
||||
| replaceRE "<!--(.|\\s)*?-->\n?" ""
|
||||
| replaceRE "<tr><th>Checklist.*\n" "" }}
|
|
@ -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 }}
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue