diff --git a/api.lua b/api.lua index ad0c913..7ec1fd8 100644 --- a/api.lua +++ b/api.lua @@ -9,7 +9,7 @@ --- List Items API -- --- @script api.lua +-- @topic api local S = core.get_translator(listitems.modname) diff --git a/changelog.txt b/changelog.txt index 8fe6de0..fc62502 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ v0.8 ---- - fixed "searching" message to display before search begins + v0.7 ---- - always register "mobs" type if mobs mod available diff --git a/docs/config.ld b/docs/config.ld index 716b21f..7a7cd66 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -71,4 +71,4 @@ function custom_display_name_handler(item, default_handler) return default_handler(item) end -file = {'settings.lua', 'api.lua'} +file = {'settings.lua', 'api.lua', 'chat.lua'} diff --git a/docs/gendoc.sh b/docs/gendoc.sh index 0f21f92..fe7d450 100755 --- a/docs/gendoc.sh +++ b/docs/gendoc.sh @@ -7,6 +7,6 @@ CONFIG="${DOCS}/config.ld" cd "${ROOT}" # Clean old files -rm -rf "${DOCS}/api.html" "${DOCS}/scripts" "${DOCS}/modules" +rm -rf "${DOCS}/api.html" "${DOCS}/scripts" "${DOCS}/modules" "${DOCS}/topics" # Create new files ldoc -c "${CONFIG}" -d "${DOCS}" -o "api" "${ROOT}" diff --git a/init.lua b/init.lua index 7c18090..0b4f361 100644 --- a/init.lua +++ b/init.lua @@ -7,8 +7,6 @@ See: LICENSE.txt --]] ---- @script init.lua - listitems = {} listitems.modname = core.get_current_modname() diff --git a/settings.lua b/settings.lua index d3d6a1f..64f9a74 100644 --- a/settings.lua +++ b/settings.lua @@ -9,7 +9,7 @@ --- List Items settings -- --- @script settings.lua +-- @topic settings listitems.debug = core.settings:get_bool("enable_debug_mods", false) @@ -26,4 +26,8 @@ listitems.bullet_list = core.settings:get_bool("listitems.bullet_list", true) --- Registers "/list" commands. +-- +-- @setting listitems.enable_singleword +-- @settype boolean +-- @default true listitems.enable_singleword = core.settings:get_bool("listitems.enable_singleword", true)