diff options
author | Wuzzy <almikes@aol.com> | 2016-10-30 04:17:55 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-10-30 04:17:55 +0100 |
commit | f46e48fa3eb1e7194c7c65d90fc9e4d3e1715394 (patch) | |
tree | 742c4d2f50d6929d61dd3306ab9b88eea7f7d947 | |
parent | 7fd22dd9583bd2115010386ee9560c53420645b0 (diff) |
Add support for item definition fields
-rw-r--r-- | init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -965,12 +965,22 @@ local function gather_descs() name = def.description end if not (name == nil or name == "" or def.groups.not_in_doc or forced_items[id] == false) or forced then + -- TODO: Document custom fields in API.md + if def.x_doc_items_longdesc then + ld = def.x_doc_items_longdesc + end if help.longdesc[id] ~= nil then ld = help.longdesc[id] end + if def.x_doc_items_usagehelp then + uh = def.x_doc_items_usagehelp + end if help.usagehelp[id] ~= nil then uh = help.usagehelp[id] end + if def.x_doc_items_image then + im = def.x_doc_items_image + end if help.image[id] ~= nil then im = help.image[id] end |