mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 08:38:36 +01:00
Fixes #784 Add a collapsible list of endpoints to the top of the page for each distinct spec. We do this by storing endpoint metadata on $page and creating a new partial, endpoints-toc.html, which renders it.
20 lines
532 B
HTML
20 lines
532 B
HTML
{{/*
|
|
|
|
Override the `layouts/docs/list.html` template from Docsy. While this template
|
|
is equivalent to `single.html`, it's necessary to override both templates to
|
|
avoid falling back to the default Docsy templates.
|
|
|
|
https://gohugo.io/templates/types/#list
|
|
|
|
We use this list template to render the Client-Server API spec page and each
|
|
of its modules.
|
|
|
|
The contents of the "main" block below are inserted into the `./baseof.html`
|
|
base template.
|
|
|
|
*/}}
|
|
|
|
{{ define "main" }}
|
|
{{ partial "spec-content.html" . }}
|
|
{{ end }}
|