mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34:09 +01:00
Improve docs
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
450c147278
commit
52da075263
|
|
@ -160,8 +160,12 @@
|
||||||
{{ $type := "object" }}
|
{{ $type := "object" }}
|
||||||
{{ if and .title (or .properties (not (or .additionalProperties .patternProperties))) }}
|
{{ if and .title (or .properties (not (or .additionalProperties .patternProperties))) }}
|
||||||
{{/*
|
{{/*
|
||||||
If the property has a `title`, use that rather than `type`.
|
We only want to use the title in two cases:
|
||||||
This means we can write things like `EventFilter` rather than `object`.
|
|
||||||
|
* The object is rendered as a separate table that will use the same
|
||||||
|
title, which means that the object must have `properties`.
|
||||||
|
* The object doesn't define any properties, because showing the title
|
||||||
|
(like `EventFilter`) is better than showing `object`.
|
||||||
*/}}
|
*/}}
|
||||||
{{ $type = .title | htmlEscape }}
|
{{ $type = .title | htmlEscape }}
|
||||||
{{ if .anchor }}
|
{{ if .anchor }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue