Make definition anchors more unique (#1339)
Stick a `definition-` on the front of the autogenerated anchors for definition blocks. This solves a problem where, for example, https://spec.matrix.org/unstable/application-service-api/#registration could refer to either the "Registration" section or the `Registration` definition therein. (These anchors are relatively recent: they were added in #1191.
This commit is contained in:
parent
ac1c5ad2bb
commit
bc15d4f9bc
2 changed files with 2 additions and 1 deletions
1
changelogs/internal/newsfragments/1339.clarification
Normal file
1
changelogs/internal/newsfragments/1339.clarification
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Make definition anchors more unique.
|
|
@ -30,7 +30,7 @@
|
||||||
{{ $definition = partial "json-schema/resolve-refs" (dict "schema" $definition "path" $path) }}
|
{{ $definition = partial "json-schema/resolve-refs" (dict "schema" $definition "path" $path) }}
|
||||||
{{ $definition = partial "json-schema/resolve-allof" $definition }}
|
{{ $definition = partial "json-schema/resolve-allof" $definition }}
|
||||||
|
|
||||||
<section class="rendered-data definition" id="{{ anchorize $definition.title }}">
|
<section class="rendered-data definition" id="definition-{{ anchorize $definition.title }}">
|
||||||
|
|
||||||
<details {{ if not $compact }}open{{ end }}>
|
<details {{ if not $compact }}open{{ end }}>
|
||||||
<summary>
|
<summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue