2011-01-29 12:24:13 +00:00
|
|
|
# no horiz rules between sections
|
2011-11-13 03:05:13 +00:00
|
|
|
$end_section = \&Libav_end_section;
|
|
|
|
sub Libav_end_section($$)
|
2011-01-29 12:24:13 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-11-13 03:05:13 +00:00
|
|
|
$EXTRA_HEAD =
|
2011-11-13 11:25:29 +00:00
|
|
|
'<link rel="icon" href="favicon.png" type="image/png" />
|
|
|
|
';
|
2011-11-13 03:05:13 +00:00
|
|
|
|
2012-09-30 04:02:34 +00:00
|
|
|
$CSS_LINES = $ENV{"LIBAV_CSS"} || <<EOT;
|
2011-12-03 22:24:50 +00:00
|
|
|
<style type="text/css">
|
|
|
|
<!--
|
2012-09-30 04:02:34 +00:00
|
|
|
.container {
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
width: 1070px;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
color: #333333;
|
|
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: #0088cc;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
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;
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
|
2012-09-30 04:02:34 +00:00
|
|
|
h1 a,
|
|
|
|
h2 a,
|
|
|
|
h3 a,
|
|
|
|
h4 a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2011-12-03 22:24:50 +00:00
|
|
|
h1 {
|
2012-09-30 04:02:34 +00:00
|
|
|
font-size: 30px;
|
|
|
|
line-height: 40px;
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
h2 {
|
2012-09-30 04:02:34 +00:00
|
|
|
font-size: 20px;
|
|
|
|
line-height: 40px;
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
h3 {
|
2012-09-30 04:02:34 +00:00
|
|
|
font-size: 18px;
|
|
|
|
line-height: 40px;
|
|
|
|
}
|
|
|
|
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;
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
|
2012-09-30 04:02:34 +00:00
|
|
|
code {
|
|
|
|
padding: 2px 4px;
|
|
|
|
color: #d14;
|
|
|
|
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;
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
|
2012-09-30 04:02:34 +00:00
|
|
|
.alert-danger,
|
|
|
|
.alert-error {
|
|
|
|
background-color: #f2dede;
|
|
|
|
border-color: #eed3d7;
|
|
|
|
color: #b94a48;
|
|
|
|
}
|
|
|
|
.alert-info {
|
|
|
|
background-color: #d9edf7;
|
|
|
|
border-color: #bce8f1;
|
|
|
|
color: #3a87ad;
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
|
2012-09-30 04:02:34 +00:00
|
|
|
ul.toc {
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
2011-12-03 22:24:50 +00:00
|
|
|
-->
|
|
|
|
</style>
|
|
|
|
EOT
|
2011-11-13 18:32:35 +00:00
|
|
|
|
2012-09-30 04:02:34 +00:00
|
|
|
my $TEMPLATE_HEADER = $ENV{"LIBAV_HEADER"} || <<EOT;
|
|
|
|
<link rel="icon" href="favicon.png" type="image/png" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
EOT
|
2011-11-13 03:05:13 +00:00
|
|
|
|
|
|
|
$PRE_BODY_CLOSE = '</div></div>';
|
|
|
|
|
|
|
|
$SMALL_RULE = '';
|
|
|
|
$BODYTEXT = '';
|
|
|
|
|
|
|
|
$print_page_foot = \&Libav_print_page_foot;
|
|
|
|
sub Libav_print_page_foot($$)
|
2011-01-29 12:24:13 +00:00
|
|
|
{
|
|
|
|
my $fh = shift;
|
2012-10-08 10:13:35 +00:00
|
|
|
my $program_string = defined &T2H_DEFAULT_program_string ?
|
|
|
|
T2H_DEFAULT_program_string() : program_string();
|
2012-09-30 04:02:34 +00:00
|
|
|
print $fh '<footer class="footer pagination-right">' . "\n";
|
|
|
|
print $fh '<span class="label label-info">' . $program_string;
|
|
|
|
print $fh "</span></footer></div>\n";
|
2011-11-13 03:05:13 +00:00
|
|
|
}
|
|
|
|
|
2011-12-03 22:24:50 +00:00
|
|
|
$float = \&Libav_float;
|
|
|
|
|
|
|
|
sub Libav_float($$$$)
|
|
|
|
{
|
|
|
|
my $text = shift;
|
|
|
|
my $float = shift;
|
|
|
|
my $caption = shift;
|
|
|
|
my $shortcaption = shift;
|
|
|
|
|
|
|
|
my $label = '';
|
|
|
|
if (exists($float->{'id'}))
|
|
|
|
{
|
|
|
|
$label = &$anchor($float->{'id'});
|
|
|
|
}
|
|
|
|
my $class = '';
|
|
|
|
my $subject = '';
|
|
|
|
|
|
|
|
if ($caption =~ /NOTE/)
|
|
|
|
{
|
2012-09-30 04:02:34 +00:00
|
|
|
$class = "alert alert-info";
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
elsif ($caption =~ /IMPORTANT/)
|
|
|
|
{
|
2012-09-30 04:02:34 +00:00
|
|
|
$class = "alert alert-warning";
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
|
|
|
|
}
|
|
|
|
|
2011-11-13 03:05:13 +00:00
|
|
|
$print_page_head = \&Libav_print_page_head;
|
|
|
|
sub Libav_print_page_head($$)
|
|
|
|
{
|
|
|
|
my $fh = shift;
|
2013-01-23 16:11:42 +00:00
|
|
|
my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}";
|
2011-11-13 03:05:13 +00:00
|
|
|
$longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
|
|
|
|
my $description = $DOCUMENT_DESCRIPTION;
|
|
|
|
$description = $longtitle if (!defined($description));
|
|
|
|
$description = "<meta name=\"description\" content=\"$description\">" if
|
|
|
|
($description ne '');
|
|
|
|
$description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
|
|
|
|
my $encoding = '';
|
|
|
|
$encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
|
|
|
|
$longtitle =~ s/Documentation.*//g;
|
|
|
|
$longtitle = "Libav documentation : " . $longtitle;
|
|
|
|
|
|
|
|
print $fh <<EOT;
|
2012-09-30 04:02:34 +00:00
|
|
|
<!DOCTYPE html>
|
2011-11-13 03:05:13 +00:00
|
|
|
<html>
|
|
|
|
$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
|
|
|
|
<!--
|
|
|
|
$Texi2HTML::THISDOC{program_authors}
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>$longtitle</title>
|
|
|
|
|
|
|
|
$description
|
|
|
|
<meta name="keywords" content="$longtitle">
|
|
|
|
<meta name="resource-type" content="document">
|
|
|
|
<meta name="distribution" content="global">
|
|
|
|
<meta name="Generator" content="$Texi2HTML::THISDOC{program}">
|
|
|
|
$encoding
|
|
|
|
$CSS_LINES
|
2012-09-30 04:02:34 +00:00
|
|
|
$TEMPLATE_HEADER
|
2011-11-13 03:05:13 +00:00
|
|
|
EOT
|
2011-01-29 12:24:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# no navigation elements
|
|
|
|
$SECTION_NAVIGATION = 0;
|
|
|
|
# the same for texi2html 5.0
|
|
|
|
$HEADERS = 0;
|
|
|
|
|
|
|
|
# TOC and Chapter headings link
|
|
|
|
$TOC_LINKS = 1;
|
|
|
|
|
|
|
|
# print the TOC where @contents is used
|
|
|
|
$INLINE_CONTENTS = 1;
|