summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/APIDump/main.lua')
-rw-r--r--MCServer/Plugins/APIDump/main.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 136a8d12f..09f198da4 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -208,6 +208,18 @@ function DumpAPIHtml()
f:write("</ul></body></html>");
f:close();
+ -- Copy the CSS file to the output folder (overwrite any existing):
+ cssf = io.open("API/main.css", "w");
+ if (cssf ~= nil) then
+ cssfi = io.open(g_Plugin:GetLocalDirectory() .. "/main.css", "r");
+ if (cssfi ~= nil) then
+ local CSS = cssfi:read("*all");
+ cssf:write(CSS);
+ cssfi:close();
+ end
+ cssf:close();
+ end
+
LOG("API subfolder written");
end