1
0

APIDump: Basic CSS file makes tables visible

This commit is contained in:
madmaxoft 2013-09-13 16:26:17 +02:00
parent d2deb381c2
commit e3888bb147
2 changed files with 35 additions and 0 deletions

View 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;
}

View File

@ -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