Render HTML anchors for definition blocks (#1191)

It's handy to be able to link to these.
This commit is contained in:
Richard van der Hoff 2022-08-03 07:28:47 +01:00 committed by GitHub
parent 569e139ac5
commit dc4fd9bdd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View file

@ -30,7 +30,7 @@
{{ $definition = partial "json-schema/resolve-refs" (dict "schema" $definition "path" $path) }}
{{ $definition = partial "json-schema/resolve-allof" $definition }}
<section class="rendered-data definition">
<section class="rendered-data definition" id="{{ anchorize $definition.title }}">
<details {{ if not $compact }}open{{ end }}>
<summary>