mirror of
https://codeberg.org/AntumLuanti/mod-cleaner.git
synced 2025-03-21 15:41:22 +00:00
Support "chatcmd" & "setting" types in LDoc generation
This commit is contained in:
parent
2d7c5aee1f
commit
13a6fd04be
2 changed files with 21 additions and 1 deletions
|
@ -2,3 +2,23 @@ project = "Cleaner"
|
||||||
title = "Cleaner mod for Minetest"
|
title = "Cleaner mod for Minetest"
|
||||||
format = "markdown"
|
format = "markdown"
|
||||||
boilerplate = false
|
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",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -10,4 +10,4 @@ cd "${root}"
|
||||||
rm -rf "${docs}/reference"
|
rm -rf "${docs}/reference"
|
||||||
|
|
||||||
# Create new files
|
# Create new files
|
||||||
ldoc -c "${config}" -d "${docs}/reference" "${root}/api.lua"
|
ldoc -c "${config}" -d "${docs}/reference" "${root}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue