Always use relative paths for spec links

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-10-24 00:36:53 +02:00
parent 0cc0a5b2ca
commit 0395528829
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D
17 changed files with 22 additions and 22 deletions

View file

@ -9,7 +9,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/VERSION">https://github.com/matrix-org/matrix-spec/tree/VERSION</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/VERSION">https://github.com/matrix-org/matrix-spec/tree/VERSION</a></td>
<tr><th>Release date</th><td>DATE</td> <tr><th>Release date</th><td>DATE</td>
<tr><th>Checklist</th><td><a href="/changelog/VERSION/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/VERSION" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-doc/tree/v1.1">https://github.com/matrix-org/matrix-doc/tree/v1.1</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-doc/tree/v1.1">https://github.com/matrix-org/matrix-doc/tree/v1.1</a></td>
<tr><th>Release date</th><td>November 09, 2021</td> <tr><th>Release date</th><td>November 09, 2021</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.1/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.1" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.10">https://github.com/matrix-org/matrix-spec/tree/v1.10</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.10">https://github.com/matrix-org/matrix-spec/tree/v1.10</a></td>
<tr><th>Release date</th><td>March 22, 2024</td> <tr><th>Release date</th><td>March 22, 2024</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.10/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.10" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.11">https://github.com/matrix-org/matrix-spec/tree/v1.11</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.11">https://github.com/matrix-org/matrix-spec/tree/v1.11</a></td>
<tr><th>Release date</th><td>June 20, 2024</td> <tr><th>Release date</th><td>June 20, 2024</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.11/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.11" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.12">https://github.com/matrix-org/matrix-spec/tree/v1.12</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.12">https://github.com/matrix-org/matrix-spec/tree/v1.12</a></td>
<tr><th>Release date</th><td>October 07, 2024</td> <tr><th>Release date</th><td>October 07, 2024</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.12/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.12" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-doc/tree/v1.2">https://github.com/matrix-org/matrix-doc/tree/v1.2</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-doc/tree/v1.2">https://github.com/matrix-org/matrix-doc/tree/v1.2</a></td>
<tr><th>Release date</th><td>February 02, 2022</td> <tr><th>Release date</th><td>February 02, 2022</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.2/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.2" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.3">https://github.com/matrix-org/matrix-spec/tree/v1.3</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.3">https://github.com/matrix-org/matrix-spec/tree/v1.3</a></td>
<tr><th>Release date</th><td>June 15, 2022</td> <tr><th>Release date</th><td>June 15, 2022</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.3/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.3" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.4">https://github.com/matrix-org/matrix-spec/tree/v1.4</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.4">https://github.com/matrix-org/matrix-spec/tree/v1.4</a></td>
<tr><th>Release date</th><td>September 29, 2022</td> <tr><th>Release date</th><td>September 29, 2022</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.4/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.4" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.5">https://github.com/matrix-org/matrix-spec/tree/v1.5</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.5">https://github.com/matrix-org/matrix-spec/tree/v1.5</a></td>
<tr><th>Release date</th><td>November 17, 2022</td> <tr><th>Release date</th><td>November 17, 2022</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.5/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.5" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.6">https://github.com/matrix-org/matrix-spec/tree/v1.6</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.6">https://github.com/matrix-org/matrix-spec/tree/v1.6</a></td>
<tr><th>Release date</th><td>February 14, 2023</td> <tr><th>Release date</th><td>February 14, 2023</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.6/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.6" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.7">https://github.com/matrix-org/matrix-spec/tree/v1.7</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.7">https://github.com/matrix-org/matrix-spec/tree/v1.7</a></td>
<tr><th>Release date</th><td>May 25, 2023</td> <tr><th>Release date</th><td>May 25, 2023</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.7/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.7" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.8">https://github.com/matrix-org/matrix-spec/tree/v1.8</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.8">https://github.com/matrix-org/matrix-spec/tree/v1.8</a></td>
<tr><th>Release date</th><td>August 23, 2023</td> <tr><th>Release date</th><td>August 23, 2023</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.8/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.8" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -18,7 +18,7 @@ Variables:
<table class="release-info"> <table class="release-info">
<tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.9">https://github.com/matrix-org/matrix-spec/tree/v1.9</a></td> <tr><th>Git commit</th><td><a href="https://github.com/matrix-org/matrix-spec/tree/v1.9">https://github.com/matrix-org/matrix-spec/tree/v1.9</a></td>
<tr><th>Release date</th><td>November 29, 2023</td> <tr><th>Release date</th><td>November 29, 2023</td>
<tr><th>Checklist</th><td><a href="/changelog/v1.9/checklist.md">checklist.md</a></td> <tr><th>Checklist</th><td><a href="{{< relref path="changelog/v1.9" outputFormat="Checklist" >}}">checklist.md</a></td>
</table> </table>
<!-- Intentionally blank line to ensure headers work in the concatenated changelog --> <!-- Intentionally blank line to ensure headers work in the concatenated changelog -->

View file

@ -38,27 +38,27 @@
mx-user-id: mx-user-id:
title: User ID title: User ID
url: /appendices#user-identifiers url: appendices#user-identifiers
# regex: "^@" # regex: "^@"
mx-event-id: mx-event-id:
title: Event ID title: Event ID
url: /appendices#event-ids url: appendices#event-ids
# regex: "^\\$" # regex: "^\\$"
mx-room-id: mx-room-id:
title: Room ID title: Room ID
url: /appendices#room-ids url: appendices#room-ids
# regex: "^!" # regex: "^!"
mx-server-name: mx-server-name:
title: Server Name title: Server Name
url: /appendices#server-name url: appendices#server-name
# no regex # no regex
mx-mxc-uri: mx-mxc-uri:
title: Matrix Content URI title: Matrix Content URI
url: /client-server-api#matrix-content-mxc-uris url: client-server-api#matrix-content-mxc-uris
# regex: "^mxc:\\/\\/" # regex: "^mxc:\\/\\/"
uri: uri:

View file

@ -2,7 +2,7 @@
<main id="main"> <main id="main">
<div> <div>
<h1 id="title">Not found</h1> <h1 id="title">Not found</h1>
<p>This page doesn't exist. Try going back to the <a href="{{ "/" | relURL }}">main page for the Matrix Specification</a>.</p> <p>This page doesn't exist. Try going back to the <a href="{{ "" | relURL }}">main page for the Matrix Specification</a>.</p>
</div> </div>
</main> </main>
{{ end }} {{ end }}

View file

@ -13,5 +13,5 @@
Google Fonts manually via a script: Google Fonts manually via a script:
https://github.com/matrix-org/matrix-spec/tree/main/static/css/fonts https://github.com/matrix-org/matrix-spec/tree/main/static/css/fonts
*/}} */}}
<link rel="preload" href="{{ "/css/fonts/Inter.css" | relURL }}" as="style"> <link rel="preload" href="{{ "css/fonts/Inter.css" | relURL }}" as="style">
<link rel="stylesheet" href="{{ "/css/fonts/Inter.css" | relURL }}"> <link rel="stylesheet" href="{{ "css/fonts/Inter.css" | relURL }}">

View file

@ -335,7 +335,7 @@ resolve-additional-types.)
{{ $stringFormat := "" }} {{ $stringFormat := "" }}
{{ with index site.Data "string-formats" . }} {{ with index site.Data "string-formats" . }}
{{ $stringFormat = printf "<a href=\"%s\">%s</a>" (htmlEscape .url) (htmlEscape .title) }} {{ $stringFormat = printf "<a href=\"%s\">%s</a>" (htmlEscape .url | relURL) (htmlEscape .title) }}
{{ end }} {{ end }}
{{ return $stringFormat }} {{ return $stringFormat }}