doc: Add `[deprecated]` after some function names.
It use a little XSS-ish HTML tag injection, but it works
This commit is contained in:
parent
c6491e169c
commit
f234dcabf6
|
@ -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
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue