mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34:09 +01:00
Include method in all API endpoint children's IDs
Avoids duplicate IDs for object of endpoints that use the same path but a different method. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
27e71fff10
commit
fa0e3068b4
|
|
@ -20,14 +20,14 @@
|
|||
{{ $method := .method }}
|
||||
{{ $endpoint := .endpoint }}
|
||||
{{ $operation_data := .operation_data }}
|
||||
{{ $anchor := anchorize $endpoint }}
|
||||
{{ $anchor := printf "%s%s" (lower $method) (anchorize $endpoint) }}
|
||||
|
||||
<section class="rendered-data http-api {{ $method }}">
|
||||
|
||||
<details {{ if not site.Params.ui.rendered_data_collapsed }}open{{ end }}>
|
||||
<summary>
|
||||
|
||||
<h1 id="{{ lower $method }}{{ $anchor }}">
|
||||
<h1 id="{{ $anchor }}">
|
||||
<span class="http-api-method {{ $method }}">{{ $method }}</span>
|
||||
<span class="endpoint{{ if $operation_data.deprecated }} deprecated-inline{{ end }}">{{ $endpoint }}</span>
|
||||
</h1>
|
||||
|
|
|
|||
Loading…
Reference in a new issue