Vous avez re莽u un message "Your GitLab account has been locked ..." ? Pas d'inqui茅tude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 17bebf51 authored by Alexis Brenon's avatar Alexis Brenon
Browse files

馃帹 Improve item rendering

parent 2d1b1cef
......@@ -43,3 +43,12 @@ ul.parameters a.type:before, ul.returns a.type:before {
.card.bg-primary a, .card.bg-info a {
color: #fff;
}
.item-name {
font-family: monospace;
font-size: 115%;
}
.item-args {
font-style: italic;
font-size: 90%;
}
......@@ -24,8 +24,18 @@ custom_tags={
}
custom_display_name_handler = function(item)
return item.names_hierarchy[#item.names_hierarchy] ..
(item.type == "function" and item.args or "")
result = "" ..
"<span class='item-name " .. item.type .. "'>" ..
item.names_hierarchy[#item.names_hierarchy] ..
"</span>"
if item.type == "function" then
result = result .. " (<span class='item-args'>"
if item.args:sub(2, -2):len() > 0 then
result = result .. " " .. item.args:sub(2, -2) .. " "
end
result = result .. "</span>)"
end
return result
end
local torchUrls = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment