From 201c84afb37def9f4d10f60557813d904c7001f3 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 18 Oct 2013 20:21:26 +0200 Subject: APIDump: using local JS files instead of networked. This allows offline API browsing. --- MCServer/Plugins/APIDump/main.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'MCServer/Plugins/APIDump/main.lua') diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua index 22c7ad764..a40600349 100644 --- a/MCServer/Plugins/APIDump/main.lua +++ b/MCServer/Plugins/APIDump/main.lua @@ -307,6 +307,9 @@ function DumpAPIHtml() cssf:close(); end + cFile:Copy(g_Plugin:GetLocalDirectory() .. "/run_prettify.js", "API/run_prettify.js"); + cFile:Copy(g_Plugin:GetLocalFolder() .. "/lang-lua.js", "API/lang-lua.js"); + -- List the undocumented objects: f = io.open("API/_undocumented.lua", "w"); if (f ~= nil) then @@ -748,8 +751,8 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI) MCServer API - ]] .. a_ClassAPI.Name .. [[ Class - - + +
@@ -849,8 +852,8 @@ function WriteHtmlHook(a_Hook) MCServer API - ]] .. HookName .. [[ Hook - - + +
-- cgit v1.2.3