mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-01 05:28:38 +01:00
We needed to override Docsy's default page renderers to show it. Because the Client-Server API uses a different render chain than the other endpoint pages, we have to override two of Docsy's pages (`content.html` and `single.html`). In order to reduce duplication, we then put the shared content into a `spec-content.html` partial.
10 lines
271 B
HTML
10 lines
271 B
HTML
{{- /* Shared render for spec pages: title, optional description, endpoints list, body, and last-mod info. */ -}}
|
|
<div class="td-content">
|
|
<h1>{{ .Title }}</h1>
|
|
{{ partial "endpoints-toc.html" . }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ partial "page-meta-lastmod.html" . }}
|
|
</div>
|