From e3888bb1474ef4d747c9da47b83a49e519a2d3dc Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 13 Sep 2013 16:26:17 +0200 Subject: APIDump: Basic CSS file makes tables visible --- MCServer/Plugins/APIDump/main.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'MCServer/Plugins/APIDump/main.lua') 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(""); 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 -- cgit v1.2.3