summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-13 16:26:17 +0200
committermadmaxoft <github@xoft.cz>2013-09-13 16:26:17 +0200
commite3888bb1474ef4d747c9da47b83a49e519a2d3dc (patch)
tree9a882e013ededa9d63a84a0f144c5adff9329fa3 /MCServer/Plugins
parentAPIDump: Constructors are renamed and can have documentation (diff)
downloadcuberite-e3888bb1474ef4d747c9da47b83a49e519a2d3dc.tar
cuberite-e3888bb1474ef4d747c9da47b83a49e519a2d3dc.tar.gz
cuberite-e3888bb1474ef4d747c9da47b83a49e519a2d3dc.tar.bz2
cuberite-e3888bb1474ef4d747c9da47b83a49e519a2d3dc.tar.lz
cuberite-e3888bb1474ef4d747c9da47b83a49e519a2d3dc.tar.xz
cuberite-e3888bb1474ef4d747c9da47b83a49e519a2d3dc.tar.zst
cuberite-e3888bb1474ef4d747c9da47b83a49e519a2d3dc.zip
Diffstat (limited to 'MCServer/Plugins')
-rw-r--r--MCServer/Plugins/APIDump/main.css23
-rw-r--r--MCServer/Plugins/APIDump/main.lua12
2 files changed, 35 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/main.css b/MCServer/Plugins/APIDump/main.css
new file mode 100644
index 000000000..f9cdfc3ce
--- /dev/null
+++ b/MCServer/Plugins/APIDump/main.css
@@ -0,0 +1,23 @@
+table
+{
+ background-color: #fff;
+ border-spacing: 0px;
+ border-collapse: collapse;
+ border-color: gray;
+}
+
+tr
+{
+ display: table-row;
+ vertical-align: inherit;
+ border-color: inherit;
+}
+
+td, th
+{
+ display: table-cell;
+ vertical-align: inherit;
+ padding: 3px;
+ border: 1px solid #ccc;
+}
+
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