]> git.sesse.net Git - ffmpeg/blob - doc/t2h.init
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / doc / t2h.init
1 # no horiz rules between sections
2 $end_section = \&FFmpeg_end_section;
3 sub FFmpeg_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
13 my $FFMPEG_NAVBAR = $ENV{"FFMPEG_NAVBAR"} || '';
14
15 $AFTER_BODY_OPEN =
16 '<div id="container">' .
17 "\n$FFMPEG_NAVBAR\n" .
18 '<div id="body">';
19
20 $PRE_BODY_CLOSE = '</div></div>';
21
22 $SMALL_RULE = '';
23 $BODYTEXT = '';
24
25 $print_page_foot = \&FFmpeg_print_page_foot;
26 sub FFmpeg_print_page_foot($$)
27 {
28     my $fh = shift;
29     print $fh '<div id="footer">' . "\n";
30     T2H_DEFAULT_print_page_foot($fh);
31     print $fh "</div>\n";
32 }
33
34 $print_page_head = \&FFmpeg_print_page_head;
35 sub FFmpeg_print_page_head($$)
36 {
37     my $fh = shift;
38     my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}";
39     $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
40     my $description = $DOCUMENT_DESCRIPTION;
41     $description = $longtitle if (!defined($description));
42     $description = "<meta name=\"description\" content=\"$description\">" if
43          ($description ne '');
44     $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
45     my $encoding = '';
46     $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
47     $longtitle =~ s/Documentation.*//g;
48     $longtitle = "FFmpeg documentation : " . $longtitle;
49
50     print $fh <<EOT;
51 $DOCTYPE
52 <html>
53 $Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
54 <!--
55 $Texi2HTML::THISDOC{program_authors}
56 -->
57 <head>
58 <title>$longtitle</title>
59
60 $description
61 <meta name="keywords" content="$longtitle">
62 <meta name="resource-type" content="document">
63 <meta name="distribution" content="global">
64 <meta name="Generator" content="$Texi2HTML::THISDOC{program}">
65 $encoding
66 $CSS_LINES
67 $EXTRA_HEAD
68 </head>
69
70 <body $BODYTEXT>
71 $AFTER_BODY_OPEN
72 EOT
73 }
74
75 # no navigation elements
76 $SECTION_NAVIGATION = 0;
77 # the same for texi2html 5.0
78 $HEADERS = 0;
79
80 # TOC and Chapter headings link
81 $TOC_LINKS = 1;
82
83 # print the TOC where @contents is used
84 $INLINE_CONTENTS = 1;