From f234dcabf68c4625f252b86e2d42f7fc72b8efc2 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 28 May 2018 14:05:05 -0400 Subject: [PATCH] doc: Add `[deprecated]` after some function names. It use a little XSS-ish HTML tag injection, but it works --- docs/config.ld | 4 ++++ docs/ldoc.css | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/docs/config.ld b/docs/config.ld index f5e3d625..bf559226 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -140,6 +140,10 @@ custom_display_name_handler = function(item, default_handler) return name ~= "" and name or item.name end + if item.type == "deprecated" then + return default_handler(item) .. " [deprecated]" + end + return default_handler(item) end diff --git a/docs/ldoc.css b/docs/ldoc.css index faa3a04b..2e129920 100644 --- a/docs/ldoc.css +++ b/docs/ldoc.css @@ -277,6 +277,11 @@ ul.nowrap { padding-right: 15px; } +.deprecated_label { + color: #9db9f3; + font-weight: normal; +} + /* stop sublists from having initial vertical space */ ul ul { margin-top: 0px; } ol ul { margin-top: 0px; }