Add support for item definition fields
This commit is contained in:
parent
7fd22dd958
commit
f46e48fa3e
10
init.lua
10
init.lua
@ -965,12 +965,22 @@ local function gather_descs()
|
|||||||
name = def.description
|
name = def.description
|
||||||
end
|
end
|
||||||
if not (name == nil or name == "" or def.groups.not_in_doc or forced_items[id] == false) or forced then
|
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
|
if help.longdesc[id] ~= nil then
|
||||||
ld = help.longdesc[id]
|
ld = help.longdesc[id]
|
||||||
end
|
end
|
||||||
|
if def.x_doc_items_usagehelp then
|
||||||
|
uh = def.x_doc_items_usagehelp
|
||||||
|
end
|
||||||
if help.usagehelp[id] ~= nil then
|
if help.usagehelp[id] ~= nil then
|
||||||
uh = help.usagehelp[id]
|
uh = help.usagehelp[id]
|
||||||
end
|
end
|
||||||
|
if def.x_doc_items_image then
|
||||||
|
im = def.x_doc_items_image
|
||||||
|
end
|
||||||
if help.image[id] ~= nil then
|
if help.image[id] ~= nil then
|
||||||
im = help.image[id]
|
im = help.image[id]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user