mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-04 05:13:42 +01: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 -%}
|
||||
|
||||
``{{endpoint.method}} {{endpoint.path}}``
|
||||
{{(5 + (endpoint.path | length) + (endpoint.method | length)) * title_kind}}
|
||||
{% if "deprecated" in endpoint and endpoint.deprecated -%}
|
||||
Deprecated: ``{{endpoint.method}} {{endpoint.path}}``
|
||||
{{(17 + (endpoint.path | length) + (endpoint.method | length)) * title_kind}}
|
||||
|
||||
.. WARNING::
|
||||
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 -%}
|
||||
|
||||
{{endpoint.desc}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue