doc: Add `[deprecated]` after some function names.

It use a little XSS-ish HTML tag injection, but it works
This commit is contained in:
Emmanuel Lepage Vallee 2018-05-28 14:05:05 -04:00
parent c6491e169c
commit f234dcabf6
2 changed files with 9 additions and 0 deletions

View File

@ -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) .. "</a> <i class=\"deprecated_label\">[deprecated]</i><a>"
end
return default_handler(item)
end

View File

@ -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; }