This is actually doing two things: * creating `{fragments,modules}/index.md` turns the fragments and modules into page resources, rather than pages in their own right. We have to update the shortcodes to match. * adding `headless: true` means that we don't render the pages. The net effect is that we don't render pages like https://spec.matrix.org/v1.4/rooms/fragments/v1-auth-rules/ and https://spec.matrix.org/v1.4/client-server-api/modules/account_data/.
16 lines
389 B
HTML
16 lines
389 B
HTML
{{/*
|
|
|
|
This template is used to render a Client-Server API Module. Modules are defined
|
|
alongside the `_index.md` for the CS API.
|
|
|
|
The `name` parameter is the file name without extension.
|
|
|
|
*/}}
|
|
|
|
{{ $name := .Params.name }}
|
|
|
|
{{ with .Site.GetPage "client-server-api/modules" }}
|
|
{{ with .Resources.GetMatch (printf "%s%s" $name ".md") }}
|
|
{{ .Content }}
|
|
{{ end }}
|
|
{{ end }}
|