Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexis Brenon
arcades
Commits
17bebf51
Commit
17bebf51
authored
Feb 01, 2018
by
Alexis Brenon
Browse files
🎨
Improve item rendering
parent
2d1b1cef
Changes
2
Hide whitespace changes
Inline
Side-by-side
assets/ldoc/ldoc.css
View file @
17bebf51
...
...
@@ -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%
;
}
config.ld
View file @
17bebf51
...
...
@@ -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 = {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment