Fix lua docs sidebar items not being indexable
This commit is contained in:
@@ -20,6 +20,11 @@ end
|
|||||||
function ldoc.sidebar_item(item, module)
|
function ldoc.sidebar_item(item, module)
|
||||||
local text = ""
|
local text = ""
|
||||||
|
|
||||||
|
text = text .. ldoc.realm_icon(item.tags.realm[1])
|
||||||
|
text = text .. "<a href=\""
|
||||||
|
.. ldoc.ref_to_module(module) .. "#" .. item.name
|
||||||
|
.. "\">"
|
||||||
|
|
||||||
local deprecated = item.tags.deprecated
|
local deprecated = item.tags.deprecated
|
||||||
if deprecated then
|
if deprecated then
|
||||||
text = text .. "<span class=\"strikethrough\">"
|
text = text .. "<span class=\"strikethrough\">"
|
||||||
@@ -27,11 +32,6 @@ function ldoc.sidebar_item(item, module)
|
|||||||
text = text .. "<span>"
|
text = text .. "<span>"
|
||||||
end
|
end
|
||||||
|
|
||||||
text = text .. ldoc.realm_icon(item.tags.realm[1])
|
|
||||||
text = text .. "<a href=\""
|
|
||||||
.. ldoc.ref_to_module(module) .. "#" .. item.name
|
|
||||||
.. "\">"
|
|
||||||
|
|
||||||
if ldoc.is_kind_classmethod(module.kind) then
|
if ldoc.is_kind_classmethod(module.kind) then
|
||||||
text = text .. item.name:gsub(".+:", "")
|
text = text .. item.name:gsub(".+:", "")
|
||||||
else
|
else
|
||||||
@@ -39,8 +39,8 @@ function ldoc.sidebar_item(item, module)
|
|||||||
end
|
end
|
||||||
|
|
||||||
text = text
|
text = text
|
||||||
.. "</a>"
|
|
||||||
.. "</span>"
|
.. "</span>"
|
||||||
|
.. "</a>"
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user