mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-30 14:14:09 +02:00
Merge pull request #2250 from matrix-org/travis/deprecated-toc
List deprecated endpoints as deprecated
This commit is contained in:
commit
b5529ff6a3
|
|
@ -1,11 +1,15 @@
|
||||||
{% import 'tables.tmpl' as tables -%}
|
{% import 'tables.tmpl' as tables -%}
|
||||||
|
|
||||||
``{{endpoint.method}} {{endpoint.path}}``
|
|
||||||
{{(5 + (endpoint.path | length) + (endpoint.method | length)) * title_kind}}
|
|
||||||
{% if "deprecated" in endpoint and endpoint.deprecated -%}
|
{% if "deprecated" in endpoint and endpoint.deprecated -%}
|
||||||
|
Deprecated: ``{{endpoint.method}} {{endpoint.path}}``
|
||||||
|
{{(17 + (endpoint.path | length) + (endpoint.method | length)) * title_kind}}
|
||||||
|
|
||||||
.. WARNING::
|
.. WARNING::
|
||||||
This API is deprecated and will be removed from a future release.
|
This API is deprecated and will be removed from a future release.
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
``{{endpoint.method}} {{endpoint.path}}``
|
||||||
|
{{(5 + (endpoint.path | length) + (endpoint.method | length)) * title_kind}}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{{endpoint.desc}}
|
{{endpoint.desc}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue