Add support for deprecation reason in lua docs

This commit is contained in:
peelz
2022-08-03 21:34:42 -04:00
parent 477cbeccc6
commit 97021f127c

View File

@@ -25,6 +25,11 @@
<div class="title">Deprecated</div>
<div class="body">
<p>This API is deprecated and shouldn't be used anymore.</p>
{% for _, m in ipairs(item.tags.deprecated) do %}
{% if m ~= "" then %}
<p>{* ldoc.markup(m) *}</p>
{% end %}
{% end %}
</div>
</div>
{% end %}