From 512b95d89cb508d2f4101d77c0b48cbed146c0a2 Mon Sep 17 00:00:00 2001 From: peelz Date: Wed, 3 Aug 2022 21:34:42 -0400 Subject: [PATCH] Fix lua docs sidebar items not being indexable --- luacs-docs/lua/templates/ldoc.ltp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/luacs-docs/lua/templates/ldoc.ltp b/luacs-docs/lua/templates/ldoc.ltp index fe92540f7..fa6975185 100644 --- a/luacs-docs/lua/templates/ldoc.ltp +++ b/luacs-docs/lua/templates/ldoc.ltp @@ -20,6 +20,11 @@ end function ldoc.sidebar_item(item, module) local text = "" + text = text .. ldoc.realm_icon(item.tags.realm[1]) + text = text .. "" + local deprecated = item.tags.deprecated if deprecated then text = text .. "" @@ -27,11 +32,6 @@ function ldoc.sidebar_item(item, module) text = text .. "" end - text = text .. ldoc.realm_icon(item.tags.realm[1]) - text = text .. "" - 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 - .. "" .. "" + .. "" return text end