LDoc: add "tool" type

This commit is contained in:
Jordan Irwin 2021-07-28 01:41:15 -07:00
parent 6b211cf5f6
commit b9455caeb2

View file

@ -4,6 +4,7 @@ format = "markdown"
boilerplate = false
file = {
"init.lua",
"settings.lua",
"api.lua",
"chat.lua",
@ -11,8 +12,14 @@ file = {
new_type("chatcmd", "Chat Commands")
new_type("setting", "Settings")
new_type("tool", "Tools")
custom_tags = {
{
"privs",
title = "Required Privileges",
},
-- settings
{
"settype",
title = "Setting Type",
@ -21,4 +28,12 @@ custom_tags = {
"default",
title = "Default Value",
},
-- craft items/tools
{
"img",
title = "Image",
format = function(value)
return "<img src=\"../../../textures/" .. value .. "\" style=\"width:32px; height:32px;\" />"
end,
},
}