mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
Fixed logo file name (lowercase). Added function box with anchors to functions
This commit is contained in:
parent
8717463be7
commit
8f1cc9bd3a
@ -506,7 +506,7 @@ local function gen_html_page( fname, lang )
|
|||||||
<input class="searchbutton" type="submit" value="Go" />
|
<input class="searchbutton" type="submit" value="Go" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h1><a href="index.htm" title="eLua Project"><img src="images/logo_eLua_menor.png" alt="eLua Project"/></a></h1>
|
<h1><a href="en_index.htm" title="eLua Project"><img src="images/logo_elua_menor.png" alt="eLua Project"/></a></h1>
|
||||||
|
|
||||||
<!--navegação-->
|
<!--navegação-->
|
||||||
<div id="nav_top">
|
<div id="nav_top">
|
||||||
|
@ -94,7 +94,7 @@ float:left;
|
|||||||
#header .sections li a{font-family:'fonte_chamada_2', Helvetica, Arial, sans-serif;padding:5px 5px 5px 5px;-moz-border-radius:7px;-webkitborder-radius:7px;border-radius:7px;display:block;float:left;background:#02174a;border:1px solid #0b245b;text-shadow: 2px 2px 0px #000;text-decoration:none;margin:10px 5px 0 0;}
|
#header .sections li a{font-family:'fonte_chamada_2', Helvetica, Arial, sans-serif;padding:5px 5px 5px 5px;-moz-border-radius:7px;-webkitborder-radius:7px;border-radius:7px;display:block;float:left;background:#02174a;border:1px solid #0b245b;text-shadow: 2px 2px 0px #000;text-decoration:none;margin:10px 5px 0 0;}
|
||||||
#header .sections li a[href]:hover{padding:5px 5px 5px 5px;display:block;float:left;background:#01103b;border:1px solid #1a366f;text-decoration:none;}
|
#header .sections li a[href]:hover{padding:5px 5px 5px 5px;display:block;float:left;background:#01103b;border:1px solid #1a366f;text-decoration:none;}
|
||||||
#header .sections li .selected{padding:5px 5px 5px 5px;display:block;float:left;background:#01103b;border:1px solid #1a366f;text-decoration:none;color:#fff;}
|
#header .sections li .selected{padding:5px 5px 5px 5px;display:block;float:left;background:#01103b;border:1px solid #1a366f;text-decoration:none;color:#fff;}
|
||||||
#header h2,h2 a{font-size:30px;color:#fff;text-shadow: 2px 1px 0px #022140;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;text-decoration:none;}
|
#header h2,#header h2 a{font-size:30px;color:#fff;text-shadow: 2px 1px 0px #022140;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;text-decoration:none;}
|
||||||
#header h2 a[href]:hover{text-decoration:underline;}
|
#header h2 a[href]:hover{text-decoration:underline;}
|
||||||
#header .chamada_elua{font-weight:normal;font-size:23px;text-shadow: 2px 1px 0px #022140;line-height:1.3; padding:30px;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;}
|
#header .chamada_elua{font-weight:normal;font-size:23px;text-shadow: 2px 1px 0px #022140;line-height:1.3; padding:30px;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;}
|
||||||
|
|
||||||
@ -184,6 +184,9 @@ margin:10px;
|
|||||||
#interna_2 .section_conteudo ul li{
|
#interna_2 .section_conteudo ul li{
|
||||||
line-height:22px;
|
line-height:22px;
|
||||||
}
|
}
|
||||||
|
#interna_2 .section_conteudo h2{
|
||||||
|
font-size:19px;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
#interna_2 .section h1{font-size:23px;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;
|
#interna_2 .section h1{font-size:23px;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
@ -236,6 +239,30 @@ color:#03121c;
|
|||||||
|
|
||||||
#article .section_conteudo img{margin:7px 0px 7px 0px;}
|
#article .section_conteudo img{margin:7px 0px 7px 0px;}
|
||||||
|
|
||||||
|
#article .functions{display:block;background: none repeat scroll 0 0 #EDEDEA;border: 1px solid #566D82;padding:10px; -moz-border-radius: 5px 5px 5px 5px;}
|
||||||
|
|
||||||
|
#article .functions a[href]{font-weight:normal;padding:0px 15px 0px 0px;}
|
||||||
|
|
||||||
|
.function-block {
|
||||||
|
|
||||||
|
background: none repeat scroll 0 0 #EDEDEA;
|
||||||
|
border: 1px solid #566D82;
|
||||||
|
margin: 20px 0 20px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.function-block h2 {
|
||||||
|
background: none repeat scroll 0 0 #EDEDEA;
|
||||||
|
border-left: 4px solid #566D82;
|
||||||
|
border-bottom: 1px dashed #566D82;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 8px 0 12px 10px;
|
||||||
|
overflow: auto;
|
||||||
|
font-size:19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.function-block p {margin:15px;}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
background: none repeat scroll 0 0 #EDEDEA;
|
background: none repeat scroll 0 0 #EDEDEA;
|
||||||
border-left: 4px solid #566D82;
|
border-left: 4px solid #566D82;
|
||||||
@ -259,7 +286,7 @@ pre, code {
|
|||||||
#interna_2 #article .section_conteudo{width:auto;float:left;margin:10px 10px 0px 0;padding:10px;text-align:normal;}
|
#interna_2 #article .section_conteudo{width:auto;float:left;margin:10px 10px 0px 0;padding:10px;text-align:normal;}
|
||||||
#interna_2 #article .section_size{width:700px;}
|
#interna_2 #article .section_size{width:700px;}
|
||||||
#interna_2 #article .section_conteudo h1{font-size:25px;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;text-align:bold;margin-bottom:10px;}
|
#interna_2 #article .section_conteudo h1{font-size:25px;font-family:'fonte_chamada', Helvetica, Arial, sans-serif;text-align:bold;margin-bottom:10px;}
|
||||||
#interna_2 #article .section_conteudo h3{font-size:19px;border-bottom: 1px solid #8EBBD0;margin:15px 0px 17px 0px;}
|
#interna_2 #article .section_conteudo h3{font-size:19px;border-bottom: 1px solid #566D82;margin:15px 0px 17px 0px;}
|
||||||
#interna_2 #article .section_conteudo b{color:#0b75aa;}
|
#interna_2 #article .section_conteudo b{color:#0b75aa;}
|
||||||
|
|
||||||
|
|
||||||
|
@ -181,7 +181,13 @@ local function build_file( fname )
|
|||||||
return false, "funcs not found"
|
return false, "funcs not found"
|
||||||
end
|
end
|
||||||
local funcs = r.funcs
|
local funcs = r.funcs
|
||||||
page = page .. '<a name="funcs" /><h3>Functions</h3>\n<div class="docdiv">\n'
|
local functions_name = "<div class='functions'>"
|
||||||
|
for _,f in pairs(funcs)do
|
||||||
|
functions_name = functions_name.."<a href='#"..namefromsig( f.sig ) .."'>"..namefromsig( f.sig ) .."</a> "
|
||||||
|
end
|
||||||
|
|
||||||
|
page = page .. '<a name="funcs" /><h3>Functions</h3>\n<div class="docdiv">\n'.. functions_name.."</div>\n"
|
||||||
|
|
||||||
|
|
||||||
menu.funcs = {}
|
menu.funcs = {}
|
||||||
|
|
||||||
@ -200,7 +206,7 @@ local function build_file( fname )
|
|||||||
-- signature
|
-- signature
|
||||||
|
|
||||||
page = page .. string.format( '<a name="%s" />', funcname )
|
page = page .. string.format( '<a name="%s" />', funcname )
|
||||||
page = page .. "inicio<pre><code>" .. f.sig:gsub( '#', '' ) .. "</code></pre>"
|
page = page .. "<div class='function-block'><h2>" .. f.sig:gsub( '#', '' ) .. "</h2>\n"
|
||||||
-- description
|
-- description
|
||||||
page = page .. "\n<p>" .. dot( format_string( f.desc ) ) .. "</p>\n"
|
page = page .. "\n<p>" .. dot( format_string( f.desc ) ) .. "</p>\n"
|
||||||
-- arguments
|
-- arguments
|
||||||
@ -234,7 +240,7 @@ local function build_file( fname )
|
|||||||
else
|
else
|
||||||
page = page .. "nothing.</p>"
|
page = page .. "nothing.</p>"
|
||||||
end
|
end
|
||||||
page = page .. "\n\nxxxxfim"
|
page = page .. "\n\n</div>"
|
||||||
end
|
end
|
||||||
page = page .. "</div>\n"
|
page = page .. "</div>\n"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user