Fix lua docs sidebar items not being indexable

This commit is contained in:
peelz
2022-08-03 21:34:42 -04:00
parent 897466d295
commit 512b95d89c

View File

@@ -20,6 +20,11 @@ end
function ldoc.sidebar_item(item, module)
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
if deprecated then
text = text .. "<span class=\"strikethrough\">"
@@ -27,11 +32,6 @@ function ldoc.sidebar_item(item, module)
text = text .. "<span>"
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
text = text .. item.name:gsub(".+:", "")
else
@@ -39,8 +39,8 @@ function ldoc.sidebar_item(item, module)
end
text = text
.. "</a>"
.. "</span>"
.. "</a>"
return text
end