summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-09 18:55:24 +0100
committermadmaxoft <github@xoft.cz>2013-11-09 18:55:24 +0100
commit157bd150fd648dccf26466a7c4b8b90c5bb6bdb2 (patch)
tree614374cefed4dd783b8074686085046a00dc7347 /MCServer/Plugins/APIDump
parentPrepared the VC2013 folder. (diff)
downloadcuberite-157bd150fd648dccf26466a7c4b8b90c5bb6bdb2.tar
cuberite-157bd150fd648dccf26466a7c4b8b90c5bb6bdb2.tar.gz
cuberite-157bd150fd648dccf26466a7c4b8b90c5bb6bdb2.tar.bz2
cuberite-157bd150fd648dccf26466a7c4b8b90c5bb6bdb2.tar.lz
cuberite-157bd150fd648dccf26466a7c4b8b90c5bb6bdb2.tar.xz
cuberite-157bd150fd648dccf26466a7c4b8b90c5bb6bdb2.tar.zst
cuberite-157bd150fd648dccf26466a7c4b8b90c5bb6bdb2.zip
Diffstat (limited to 'MCServer/Plugins/APIDump')
-rw-r--r--MCServer/Plugins/APIDump/main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index a9cdf143b..d84926b53 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -198,11 +198,13 @@ end
function DumpAPIHtml()
LOG("Dumping all available functions and constants to API subfolder...");
+ LOG("Creating API tables...");
local API, Globals = CreateAPITables();
local Hooks = {};
local UndocumentedHooks = {};
-- Sort the classes by name:
+ LOG("Sorting...");
table.sort(API,
function (c1, c2)
return (string.lower(c1.Name) < string.lower(c2.Name));
@@ -233,6 +235,7 @@ function DumpAPIHtml()
);
-- Read in the descriptions:
+ LOG("Reading descriptions...");
ReadDescriptions(API);
ReadHooks(Hooks);
@@ -243,6 +246,7 @@ function DumpAPIHtml()
-- Create a "class index" file, write each class as a link to that file,
-- then dump class contents into class-specific file
+ LOG("Writing HTML files...");
local f = io.open("API/index.html", "w");
if (f == nil) then
LOGINFO("Cannot output HTML API: " .. err);
@@ -335,6 +339,7 @@ function DumpAPIHtml()
cFile:Copy(g_Plugin:GetLocalFolder() .. "/lang-lua.js", "API/lang-lua.js");
-- List the documentation problems:
+ LOG("Listing leftovers...");
ListUndocumentedObjects(API, UndocumentedHooks);
ListUnexportedObjects();
ListMissingPages();