Support "chatcmd" & "setting" types in LDoc generation

This commit is contained in:
Jordan Irwin 2021-07-12 15:46:33 -07:00
parent 2d7c5aee1f
commit 13a6fd04be
2 changed files with 21 additions and 1 deletions

View file

@ -2,3 +2,23 @@ project = "Cleaner"
title = "Cleaner mod for Minetest"
format = "markdown"
boilerplate = false
file = {
"settings.lua",
"api.lua",
"chat.lua",
}
new_type("chatcmd", "Chat Commands")
new_type("setting", "Settings")
custom_tags = {
{
"settype",
title = "Setting Type",
},
{
"default",
title = "Default Value",
},
}

View file

@ -10,4 +10,4 @@ cd "${root}"
rm -rf "${docs}/reference"
# Create new files
ldoc -c "${config}" -d "${docs}/reference" "${root}/api.lua"
ldoc -c "${config}" -d "${docs}/reference" "${root}"