diff --git a/docs/config.ld b/docs/config.ld index f5e3d625a..bf559226d 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 faa3a04bc..2e129920f 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; }