doc: support the new website layout
This commit is contained in:
parent
91f5f87561
commit
d19d01bf62
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,9 @@
|
|||||||
</div>
|
|
||||||
|
|
||||||
<div id="footer">
|
|
||||||
Generated on $datetime for $projectname by <a href="http://www.doxygen.org/index.html">doxygen</a> $doxygenversion
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<footer class="footer pagination-right">
|
||||||
|
<span class="label label-info">
|
||||||
|
Generated on $datetime for $projectname by <a href="http://www.doxygen.org/index.html">doxygen</a> $doxygenversion
|
||||||
|
</span>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||||
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
|
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
|
||||||
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
|
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
|
||||||
<link href="$relpath$doxy_stylesheet.css" rel="stylesheet" type="text/css" />
|
<link href="$relpath$doxy_stylesheet.css" rel="stylesheet" type="text/css" />
|
||||||
|
<!--Header replace -->
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<div id="container">
|
<div class="container">
|
||||||
|
|
||||||
<div id="body">
|
<!--Header replace -->
|
||||||
<div>
|
<div class="menu">
|
||||||
|
173
doc/t2h.init
173
doc/t2h.init
@ -6,73 +6,135 @@ sub Libav_end_section($$)
|
|||||||
|
|
||||||
$EXTRA_HEAD =
|
$EXTRA_HEAD =
|
||||||
'<link rel="icon" href="favicon.png" type="image/png" />
|
'<link rel="icon" href="favicon.png" type="image/png" />
|
||||||
<link rel="stylesheet" type="text/css" href="default.css" />
|
|
||||||
';
|
';
|
||||||
|
|
||||||
$CSS_LINES = <<EOT;
|
$CSS_LINES = $ENV{"LIBAV_CSS"} || <<EOT;
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
<!--
|
<!--
|
||||||
a.summary-letter { text-decoration: none }
|
.container {
|
||||||
a { color: #2D6198; }
|
margin-right: auto;
|
||||||
a:visited { color: #884488; }
|
margin-left: auto;
|
||||||
h1 a, h2 a, h3 a { text-decoration: inherit; color: inherit; }
|
width: 1070px;
|
||||||
p { margin-left: 1em; margin-right: 1em; }
|
}
|
||||||
table { margin-left: 2em; }
|
body {
|
||||||
pre { margin-left: 2em; }
|
font-size: 14px;
|
||||||
#footer { text-align: center; }
|
line-height: 20px;
|
||||||
#body { margin-left: 1em; margin-right: 1em; }
|
color: #333333;
|
||||||
body { background-color: #313131; margin: 0; }
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
#container {
|
a {
|
||||||
background-color: white;
|
color: #0088cc;
|
||||||
color: #202020;
|
text-decoration: none;
|
||||||
margin-left: 1em;
|
}
|
||||||
margin-right: 1em;
|
a:hover {
|
||||||
|
color: #005580;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin: 0 0 10px;
|
||||||
|
}
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4 {
|
||||||
|
margin: 10px 0;
|
||||||
|
font-family: inherit;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 1;
|
||||||
|
border-color: #D6E9C6;
|
||||||
|
color: #468847;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 0 0 1px;
|
||||||
|
padding-left: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 a,
|
||||||
|
h2 a,
|
||||||
|
h3 a,
|
||||||
|
h4 a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
h1 {
|
h1 {
|
||||||
background-color: #7BB37B;
|
font-size: 30px;
|
||||||
border: 1px solid #6A996A;
|
line-height: 40px;
|
||||||
color: #151515;
|
|
||||||
font-size: 1.2em;
|
|
||||||
padding-bottom: 0.2em;
|
|
||||||
padding-left: 0.4em;
|
|
||||||
padding-top: 0.2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
color: #313131;
|
font-size: 20px;
|
||||||
font-size: 1.2em;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
color: #313131;
|
font-size: 18px;
|
||||||
font-size: 0.8em;
|
line-height: 40px;
|
||||||
margin-bottom: -8px;
|
}
|
||||||
|
code,
|
||||||
|
pre {
|
||||||
|
padding: 0 3px 2px;
|
||||||
|
font-family: monospace;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #333333;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
display: block;
|
||||||
|
padding: 9.5px;
|
||||||
|
margin: 0 0 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 20px;
|
||||||
|
word-break: break-all;
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: pre;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note {
|
code {
|
||||||
margin: 1em;
|
padding: 2px 4px;
|
||||||
border: 1px solid #bbc9d8;
|
color: #d14;
|
||||||
background-color: #dde1e1;
|
background-color: #f7f7f9;
|
||||||
|
border: 1px solid #e1e1e8;
|
||||||
|
}
|
||||||
|
pre code {
|
||||||
|
padding: 0;
|
||||||
|
color: inherit;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
.alert {
|
||||||
|
padding: 8px 35px 8px 14px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||||
|
background-color: #fcf8e3;
|
||||||
|
border: 1px solid #fbeed5;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #c09853;
|
||||||
}
|
}
|
||||||
|
|
||||||
.important {
|
.alert-danger,
|
||||||
margin: 1em;
|
.alert-error {
|
||||||
border: 1px solid #d26767;
|
background-color: #f2dede;
|
||||||
background-color: #f8e1e1;
|
border-color: #eed3d7;
|
||||||
|
color: #b94a48;
|
||||||
|
}
|
||||||
|
.alert-info {
|
||||||
|
background-color: #d9edf7;
|
||||||
|
border-color: #bce8f1;
|
||||||
|
color: #3a87ad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.toc {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
-->
|
-->
|
||||||
</style>
|
</style>
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
my $LIBAV_NAVBAR = $ENV{"LIBAV_NAVBAR"} || '';
|
my $TEMPLATE_HEADER = $ENV{"LIBAV_HEADER"} || <<EOT;
|
||||||
|
<link rel="icon" href="favicon.png" type="image/png" />
|
||||||
$AFTER_BODY_OPEN =
|
</head>
|
||||||
'<div id="container">' .
|
<body>
|
||||||
"\n$LIBAV_NAVBAR\n" .
|
<div class="container">
|
||||||
'<div id="body">';
|
EOT
|
||||||
|
|
||||||
$PRE_BODY_CLOSE = '</div></div>';
|
$PRE_BODY_CLOSE = '</div></div>';
|
||||||
|
|
||||||
@ -83,9 +145,10 @@ $print_page_foot = \&Libav_print_page_foot;
|
|||||||
sub Libav_print_page_foot($$)
|
sub Libav_print_page_foot($$)
|
||||||
{
|
{
|
||||||
my $fh = shift;
|
my $fh = shift;
|
||||||
print $fh '<div id="footer">' . "\n";
|
my $program_string = T2H_DEFAULT_program_string();
|
||||||
T2H_DEFAULT_print_page_foot($fh);
|
print $fh '<footer class="footer pagination-right">' . "\n";
|
||||||
print $fh "</div>\n";
|
print $fh '<span class="label label-info">' . $program_string;
|
||||||
|
print $fh "</span></footer></div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$float = \&Libav_float;
|
$float = \&Libav_float;
|
||||||
@ -107,11 +170,11 @@ sub Libav_float($$$$)
|
|||||||
|
|
||||||
if ($caption =~ /NOTE/)
|
if ($caption =~ /NOTE/)
|
||||||
{
|
{
|
||||||
$class = "note";
|
$class = "alert alert-info";
|
||||||
}
|
}
|
||||||
elsif ($caption =~ /IMPORTANT/)
|
elsif ($caption =~ /IMPORTANT/)
|
||||||
{
|
{
|
||||||
$class = "important";
|
$class = "alert alert-warning";
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
|
return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
|
||||||
@ -134,7 +197,7 @@ sub Libav_print_page_head($$)
|
|||||||
$longtitle = "Libav documentation : " . $longtitle;
|
$longtitle = "Libav documentation : " . $longtitle;
|
||||||
|
|
||||||
print $fh <<EOT;
|
print $fh <<EOT;
|
||||||
$DOCTYPE
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
|
$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
|
||||||
<!--
|
<!--
|
||||||
@ -150,11 +213,7 @@ $description
|
|||||||
<meta name="Generator" content="$Texi2HTML::THISDOC{program}">
|
<meta name="Generator" content="$Texi2HTML::THISDOC{program}">
|
||||||
$encoding
|
$encoding
|
||||||
$CSS_LINES
|
$CSS_LINES
|
||||||
$EXTRA_HEAD
|
$TEMPLATE_HEADER
|
||||||
</head>
|
|
||||||
|
|
||||||
<body $BODYTEXT>
|
|
||||||
$AFTER_BODY_OPEN
|
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user