summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-14 17:28:22 +0200
committermadmaxoft <github@xoft.cz>2013-09-14 17:28:22 +0200
commit85c4a1ebcacbf8647d106ab541a6484620a34d24 (patch)
tree9d95035c64475324857d6711d35f5ee7560a90e3 /MCServer/Plugins/APIDump/main.lua
parentAPIDump: Added support for overloaded functions. (diff)
downloadcuberite-85c4a1ebcacbf8647d106ab541a6484620a34d24.tar
cuberite-85c4a1ebcacbf8647d106ab541a6484620a34d24.tar.gz
cuberite-85c4a1ebcacbf8647d106ab541a6484620a34d24.tar.bz2
cuberite-85c4a1ebcacbf8647d106ab541a6484620a34d24.tar.lz
cuberite-85c4a1ebcacbf8647d106ab541a6484620a34d24.tar.xz
cuberite-85c4a1ebcacbf8647d106ab541a6484620a34d24.tar.zst
cuberite-85c4a1ebcacbf8647d106ab541a6484620a34d24.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/main.lua')
-rw-r--r--MCServer/Plugins/APIDump/main.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index e1aa39dd2..758df8341 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -259,6 +259,7 @@ function ReadDescriptions(a_API)
local APIDesc = g_APIDesc.Classes[cls.Name];
if (APIDesc ~= nil) then
cls.Desc = APIDesc.Desc;
+ cls.AdditionalInfo = APIDesc.AdditionalInfo;
-- Process inheritance:
if (APIDesc.Inherits ~= nil) then
@@ -444,6 +445,11 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
end
cf:write("<li><a href=\"#constants\">Constants</a></li>\n");
cf:write("<li><a href=\"#functions\">Functions</a></li>\n");
+ if (a_ClassAPI.AdditionalInfo ~= nil) then
+ for i, additional in ipairs(a_ClassAPI.AdditionalInfo) do
+ cf:write("<li><a href=\"#additionalinfo_" .. i .. "\">" .. additional.Header .. "</a></li>\n");
+ end
+ end
cf:write("</ul>");
-- Write the class description:
@@ -488,6 +494,14 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
WriteFunctions(cls.Functions, cls.Name);
end
+ -- Write the additional infos:
+ if (a_ClassAPI.AdditionalInfo ~= nil) then
+ for i, additional in ipairs(a_ClassAPI.AdditionalInfo) do
+ cf:write("<a name=\"additionalinfo_" .. i .. "\"><h1>" .. additional.Header .. "</h1></a>\n");
+ cf:write(additional.Contents);
+ end
+ end
+
cf:write("</body></html>");
cf:close();
end