Move prev_content
to unsigned (#3524)
This commit is contained in:
parent
1e12b45f97
commit
7f200c53e8
9 changed files with 48 additions and 9 deletions
14
layouts/partials/changed-in.html
Normal file
14
layouts/partials/changed-in.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{/*
|
||||
Renders the "Changed in [version]:" blocks for x-changedInMatrixVersion
|
||||
annotations for openapi parameters
|
||||
|
||||
Takes a single 'changes_dict' parameter, which should be a map of
|
||||
version -> details pairs.
|
||||
*/ -}}
|
||||
{{ range $ver, $details := .changes_dict -}}
|
||||
<br><br>
|
||||
<strong>
|
||||
Changed in <code>v{{ $ver }}</code>:
|
||||
</strong>
|
||||
{{ $details | markdownify }}
|
||||
{{ end }}
|
|
@ -28,6 +28,9 @@
|
|||
{{ if (index $event_data "x-addedInMatrixVersion") }}
|
||||
{{ partial "added-in" (dict "v" (index $event_data "x-addedInMatrixVersion")) }}
|
||||
{{ end }}
|
||||
{{ if (index $event_data "x-changedInMatrixVersion") }}
|
||||
{{ partial "changed-in" (dict "changes_dict" (index $event_data "x-changedInMatrixVersion")) }}
|
||||
{{ end -}}
|
||||
|
||||
{{ $event_data.description | markdownify }}
|
||||
|
||||
|
|
|
@ -82,7 +82,13 @@
|
|||
<tr>
|
||||
<td><code>{{ $property_name }}</code></td>
|
||||
<td><code>{{ $type }}</code></td>
|
||||
<td>{{ if $required }}<strong>Required: </strong>{{end}}{{ $property.description | markdownify }}{{ if eq $type "enum"}}<p>One of: <code>{{ $property.enum }}</code>.</p>{{ end }}{{ if (index $property "x-addedInMatrixVersion") }}{{ partial "added-in" (dict "v" (index $property "x-addedInMatrixVersion")) }}{{ end }}</td>
|
||||
<td>
|
||||
{{ if $required }}<strong>Required: </strong>{{end -}}
|
||||
{{ $property.description | markdownify -}}
|
||||
{{ if eq $type "enum"}}<p>One of: <code>{{ $property.enum }}</code>.</p>{{ end -}}
|
||||
{{ if (index $property "x-addedInMatrixVersion") }}{{ partial "added-in" (dict "v" (index $property "x-addedInMatrixVersion")) }}{{ end -}}
|
||||
{{ if (index $property "x-changedInMatrixVersion") }}{{ partial "changed-in" (dict "changes_dict" (index $property "x-changedInMatrixVersion")) }}{{ end -}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{ end }}
|
||||
|
|
|
@ -42,6 +42,9 @@
|
|||
{{ if (index $operation_data "x-addedInMatrixVersion") }}
|
||||
{{ partial "added-in" (dict "v" (index $operation_data "x-addedInMatrixVersion")) }}
|
||||
{{ end }}
|
||||
{{ if (index $operation_data "x-changedInMatrixVersion") }}
|
||||
{{ partial "changed-in" (dict "changes_dict" (index $operation_data "x-changedInMatrixVersion")) }}
|
||||
{{ end -}}
|
||||
|
||||
<p>{{ $operation_data.description | markdownify }}</p>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue