mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-06-10 18:27:47 +02:00
Some checks are pending
Spec / 🔎 Validate OpenAPI specifications (push) Waiting to run
Spec / 🔎 Check Event schema examples (push) Waiting to run
Spec / 🔎 Check OpenAPI definitions examples (push) Waiting to run
Spec / 🔎 Check JSON Schemas inline examples (push) Waiting to run
Spec / ⚙️ Calculate baseURL for later jobs (push) Waiting to run
Spec / 🐍 Build OpenAPI definitions (push) Blocked by required conditions
Spec / 📢 Run towncrier for changelog (push) Waiting to run
Spec / 📖 Build the spec (push) Blocked by required conditions
Spec / 🔎 Validate generated HTML (push) Blocked by required conditions
Spec / 📖 Build the historical backup spec (push) Blocked by required conditions
Spec / Create release (push) Blocked by required conditions
Spell Check / Spell Check with Typos (push) Waiting to run
43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
{{- /*
|
|
|
|
Template to render a page with a `changelog` layout.
|
|
|
|
This adds a table at the top of the page with information about the release:
|
|
|
|
* A link to the matrix-spec repository at the time of the release, with the
|
|
version taken from the `linkTitle` in the frontmatter of the page, unless
|
|
it is the unstable changelog.
|
|
* The date of the release, taken from the `date` in the frontmatter of the
|
|
page, unless it is the unstable changelog.
|
|
* A link to the markdown checklist format of the changelog. The `outputs` in
|
|
the frontmatter of the page must include `checklist`.
|
|
|
|
*/ -}}
|
|
|
|
{{ define "main" }}
|
|
{{ $version := lower .LinkTitle -}}
|
|
<div class="td-content" data-pagefind-filter="type:changelog">
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
<table class="release-info">
|
|
{{ $rev := $version }}
|
|
{{ if eq $version "unstable" -}}
|
|
{{- /*
|
|
Extract the git SHA from the frontmatter of the changelog, where
|
|
it was stashed by `generate-changelog.sh`.
|
|
*/ -}}
|
|
{{ $rev = .Params.commit -}}
|
|
{{ end -}}
|
|
{{ $commitLink := printf "https://github.com/matrix-org/matrix-spec/tree/%s" $rev -}}
|
|
<tr><th>Git commit</th><td><a href="{{ $commitLink }}">{{ $commitLink }}</a></td>
|
|
{{ if ne $version "unstable" }}
|
|
<tr><th>Release date</th><td>{{ .Date | time.Format ":date_long" }}</td>
|
|
{{ end -}}
|
|
{{ $checklist := .OutputFormats.Get "checklist" -}}
|
|
<tr><th>Checklist</th><td><a href="{{ $checklist.RelPermalink }}">checklist.md</a></td>
|
|
</table>
|
|
|
|
{{ .Content }}
|
|
</div>
|
|
{{ end }}
|