APIDump: Basic CSS file makes tables visible
This commit is contained in:
parent
d2deb381c2
commit
e3888bb147
23
MCServer/Plugins/APIDump/main.css
Normal file
23
MCServer/Plugins/APIDump/main.css
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
|
@ -208,6 +208,18 @@ function DumpAPIHtml()
|
|||||||
f:write("</ul></body></html>");
|
f:write("</ul></body></html>");
|
||||||
f:close();
|
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");
|
LOG("API subfolder written");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user