mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01: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
Spell Check / Spell Check with Typos (push) Waiting to run
Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
63 lines
2.1 KiB
HTML
63 lines
2.1 KiB
HTML
{{/*
|
|
|
|
A copy of the baseof.html partial in Docsy, modified
|
|
to remove the right-hand column from the layout.
|
|
|
|
*/}}
|
|
|
|
{{/* Generate a static file versions.json that can be used to populate the version picker */}}
|
|
{{ if .IsHome }}
|
|
{{- /* Load all changelog subpages, sorted by release date */ -}}
|
|
{{ $changelog := site.GetPage "changelog" }}
|
|
{{ $pages := $changelog.RegularPages.ByDate.Reverse }}
|
|
|
|
{{- /* Collect proper versions and build metadata dicts */ -}}
|
|
{{ $versions := slice }}
|
|
{{ range $pages }}
|
|
{{ if findRE `^v[0-9]+\.[0-9]+$` .Params.linkTitle }}
|
|
{{ $versions = $versions | append (dict "name" .Params.linkTitle "date" .Params.date ) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{- /* Generate the JSON */ -}}
|
|
{{ $json := jsonify $versions }}
|
|
{{ $noop := (resources.FromString "/versions.json" $json).Permalink }}
|
|
{{ end }}
|
|
|
|
<!doctype html>
|
|
<html itemscope itemtype="http://schema.org/WebPage"
|
|
{{- with .Site.Language.LanguageDirection }} dir="{{ . }}" {{- end -}}
|
|
{{ with .Site.Language.Lang }} lang="{{ . }}" {{- end }} {{/**/ -}}
|
|
class="no-js">
|
|
<head>
|
|
{{ partial "head.html" . }}
|
|
{{ if .Page.Store.Get "hasMath" }}
|
|
<link href="{{ relURL "css/katex.min.css" }}" rel="preload" as="style">
|
|
<link href="{{ relURL "css/katex.min.css" }}" rel="stylesheet">
|
|
{{ end }}
|
|
</head>
|
|
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
|
|
<header>
|
|
{{ partial "navbar.html" . }}
|
|
</header>
|
|
<div class="container-fluid td-outer">
|
|
<div class="td-main">
|
|
<div class="row flex-xl-nowrap">
|
|
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
|
|
{{ partial "sidebar.html" . }}
|
|
</aside>
|
|
<main class="col-12 col-md-9 col-xl-8 ps-md-5" role="main">
|
|
{{ partial "version-banner.html" . }}
|
|
{{ if not (.Param "ui.breadcrumb_disable") -}}
|
|
{{ partial "breadcrumb.html" . -}}
|
|
{{ end -}}
|
|
{{ block "main" . }}{{ end }}
|
|
</main>
|
|
</div>
|
|
</div>
|
|
{{ partial "footer.html" . }}
|
|
</div>
|
|
{{ partial "scripts.html" . }}
|
|
</body>
|
|
</html>
|