Add @deprecated tag to lua docs

This commit is contained in:
peelz
2022-08-03 21:34:41 -04:00
parent 5d11c28db6
commit ca51130517
5 changed files with 64 additions and 20 deletions
+8 -3
View File
@@ -40,9 +40,14 @@
{% for item, _ in pairs(items) do %}
<section class="method" id="{{item.name}}">
<header>
<a class="anchor">
<h1>{* ldoc.realm_icon(item.tags.realm[1]) *}</span>{{ldoc.display_name(item)}}</h1>
</a>
{* ldoc.item_header(item) *}
{% if item.tags.deprecated then %}
<div class="notice warning">
<div class="title">Deprecated</div>
<p>This API is deprecated and shouldn&#x27;t be used anymore.</p>
</div>
{% end %}
{% if (item.tags.internal) then %}
<div class="notice error">