APIDump: Added logging to see what takes so long.
This commit is contained in:
parent
359fb9af39
commit
157bd150fd
@ -198,11 +198,13 @@ end
|
|||||||
function DumpAPIHtml()
|
function DumpAPIHtml()
|
||||||
LOG("Dumping all available functions and constants to API subfolder...");
|
LOG("Dumping all available functions and constants to API subfolder...");
|
||||||
|
|
||||||
|
LOG("Creating API tables...");
|
||||||
local API, Globals = CreateAPITables();
|
local API, Globals = CreateAPITables();
|
||||||
local Hooks = {};
|
local Hooks = {};
|
||||||
local UndocumentedHooks = {};
|
local UndocumentedHooks = {};
|
||||||
|
|
||||||
-- Sort the classes by name:
|
-- Sort the classes by name:
|
||||||
|
LOG("Sorting...");
|
||||||
table.sort(API,
|
table.sort(API,
|
||||||
function (c1, c2)
|
function (c1, c2)
|
||||||
return (string.lower(c1.Name) < string.lower(c2.Name));
|
return (string.lower(c1.Name) < string.lower(c2.Name));
|
||||||
@ -233,6 +235,7 @@ function DumpAPIHtml()
|
|||||||
);
|
);
|
||||||
|
|
||||||
-- Read in the descriptions:
|
-- Read in the descriptions:
|
||||||
|
LOG("Reading descriptions...");
|
||||||
ReadDescriptions(API);
|
ReadDescriptions(API);
|
||||||
ReadHooks(Hooks);
|
ReadHooks(Hooks);
|
||||||
|
|
||||||
@ -243,6 +246,7 @@ function DumpAPIHtml()
|
|||||||
|
|
||||||
-- Create a "class index" file, write each class as a link to that file,
|
-- Create a "class index" file, write each class as a link to that file,
|
||||||
-- then dump class contents into class-specific file
|
-- then dump class contents into class-specific file
|
||||||
|
LOG("Writing HTML files...");
|
||||||
local f = io.open("API/index.html", "w");
|
local f = io.open("API/index.html", "w");
|
||||||
if (f == nil) then
|
if (f == nil) then
|
||||||
LOGINFO("Cannot output HTML API: " .. err);
|
LOGINFO("Cannot output HTML API: " .. err);
|
||||||
@ -335,6 +339,7 @@ function DumpAPIHtml()
|
|||||||
cFile:Copy(g_Plugin:GetLocalFolder() .. "/lang-lua.js", "API/lang-lua.js");
|
cFile:Copy(g_Plugin:GetLocalFolder() .. "/lang-lua.js", "API/lang-lua.js");
|
||||||
|
|
||||||
-- List the documentation problems:
|
-- List the documentation problems:
|
||||||
|
LOG("Listing leftovers...");
|
||||||
ListUndocumentedObjects(API, UndocumentedHooks);
|
ListUndocumentedObjects(API, UndocumentedHooks);
|
||||||
ListUnexportedObjects();
|
ListUnexportedObjects();
|
||||||
ListMissingPages();
|
ListMissingPages();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user