1# no horiz rules between sections 2$end_section = \&Libav_end_section; 3sub Libav_end_section($$) 4{ 5} 6 7$EXTRA_HEAD = 8'<link rel="icon" href="favicon.png" type="image/png" /> 9<link rel="stylesheet" type="text/css" href="default.css" /> 10'; 11 12$CSS_LINES = <<EOT; 13<style type="text/css"> 14<!-- 15a.summary-letter { text-decoration: none } 16a { color: #2D6198; } 17a:visited { color: #884488; } 18h1 a, h2 a, h3 a { text-decoration: inherit; color: inherit; } 19p { margin-left: 1em; margin-right: 1em; } 20table { margin-left: 2em; } 21pre { margin-left: 2em; } 22#footer { text-align: center; } 23#body { margin-left: 1em; margin-right: 1em; } 24body { background-color: #313131; margin: 0; } 25 26#container { 27 background-color: white; 28 color: #202020; 29 margin-left: 1em; 30 margin-right: 1em; 31} 32 33h1 { 34 background-color: #7BB37B; 35 border: 1px solid #6A996A; 36 color: #151515; 37 font-size: 1.2em; 38 padding-bottom: 0.2em; 39 padding-left: 0.4em; 40 padding-top: 0.2em; 41} 42 43h2 { 44 color: #313131; 45 font-size: 1.2em; 46} 47 48h3 { 49 color: #313131; 50 font-size: 0.8em; 51 margin-bottom: -8px; 52} 53 54.note { 55 margin: 1em; 56 border: 1px solid #bbc9d8; 57 background-color: #dde1e1; 58} 59 60.important { 61 margin: 1em; 62 border: 1px solid #d26767; 63 background-color: #f8e1e1; 64} 65 66--> 67</style> 68EOT 69 70my $LIBAV_NAVBAR = $ENV{"LIBAV_NAVBAR"} || ''; 71 72$AFTER_BODY_OPEN = 73'<div id="container">' . 74"\n$LIBAV_NAVBAR\n" . 75'<div id="body">'; 76 77$PRE_BODY_CLOSE = '</div></div>'; 78 79$SMALL_RULE = ''; 80$BODYTEXT = ''; 81 82$print_page_foot = \&Libav_print_page_foot; 83sub Libav_print_page_foot($$) 84{ 85 my $fh = shift; 86 print $fh '<div id="footer">' . "\n"; 87 T2H_DEFAULT_print_page_foot($fh); 88 print $fh "</div>\n"; 89} 90 91$float = \&Libav_float; 92 93sub Libav_float($$$$) 94{ 95 my $text = shift; 96 my $float = shift; 97 my $caption = shift; 98 my $shortcaption = shift; 99 100 my $label = ''; 101 if (exists($float->{'id'})) 102 { 103 $label = &$anchor($float->{'id'}); 104 } 105 my $class = ''; 106 my $subject = ''; 107 108 if ($caption =~ /NOTE/) 109 { 110 $class = "note"; 111 } 112 elsif ($caption =~ /IMPORTANT/) 113 { 114 $class = "important"; 115 } 116 117 return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>'; 118} 119 120$print_page_head = \&Libav_print_page_head; 121sub Libav_print_page_head($$) 122{ 123 my $fh = shift; 124 my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}"; 125 $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'}; 126 my $description = $DOCUMENT_DESCRIPTION; 127 $description = $longtitle if (!defined($description)); 128 $description = "<meta name=\"description\" content=\"$description\">" if 129 ($description ne ''); 130 $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'})); 131 my $encoding = ''; 132 $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne '')); 133 $longtitle =~ s/Documentation.*//g; 134 $longtitle = "Libav documentation : " . $longtitle; 135 136 print $fh <<EOT; 137$DOCTYPE 138<html> 139$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} --> 140<!-- 141$Texi2HTML::THISDOC{program_authors} 142--> 143<head> 144<title>$longtitle</title> 145 146$description 147<meta name="keywords" content="$longtitle"> 148<meta name="resource-type" content="document"> 149<meta name="distribution" content="global"> 150<meta name="Generator" content="$Texi2HTML::THISDOC{program}"> 151$encoding 152$CSS_LINES 153$EXTRA_HEAD 154</head> 155 156<body $BODYTEXT> 157$AFTER_BODY_OPEN 158EOT 159} 160 161# no navigation elements 162$SECTION_NAVIGATION = 0; 163# the same for texi2html 5.0 164$HEADERS = 0; 165 166# TOC and Chapter headings link 167$TOC_LINKS = 1; 168 169# print the TOC where @contents is used 170$INLINE_CONTENTS = 1; 171