1 # Init file for texi2html.
3 # This is deprecated, and the makeinfo/texi2any version is doc/t2h.pm
5 # no horiz rules between sections
6 $end_section = \&FFmpeg_end_section;
7 sub FFmpeg_end_section($$)
11 my $TEMPLATE_HEADER1 = $ENV{"FFMPEG_HEADER1"} || <<EOT;
15 <meta charset="utf-8" />
16 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
17 <title>FFmpeg documentation</title>
18 <link rel="stylesheet" href="bootstrap.min.css" />
19 <link rel="stylesheet" href="style.min.css" />
22 my $TEMPLATE_HEADER2 = $ENV{"FFMPEG_HEADER2"} || <<EOT;
25 <div class="container">
28 my $TEMPLATE_FOOTER = $ENV{"FFMPEG_FOOTER"} || <<EOT;
37 $print_page_foot = \&FFmpeg_print_page_foot;
38 sub FFmpeg_print_page_foot($$)
41 my $program_string = defined &T2H_DEFAULT_program_string ?
42 T2H_DEFAULT_program_string() : program_string();
43 print $fh '<footer class="footer pagination-right">' . "\n";
44 print $fh '<span class="label label-info">' . $program_string;
45 print $fh "</span></footer></div></div></body>\n";
48 $float = \&FFmpeg_float;
50 sub FFmpeg_float($$$$)
55 my $shortcaption = shift;
58 if (exists($float->{'id'}))
60 $label = &$anchor($float->{'id'});
65 if ($caption =~ /NOTE/)
67 $class = "alert alert-info";
69 elsif ($caption =~ /IMPORTANT/)
71 $class = "alert alert-warning";
74 return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
77 $print_page_head = \&FFmpeg_print_page_head;
78 sub FFmpeg_print_page_head($$)
81 my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}";
82 $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
83 my $description = $DOCUMENT_DESCRIPTION;
84 $description = $longtitle if (!defined($description));
85 $description = "<meta name=\"description\" content=\"$description\">" if
87 $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
89 $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
90 $longtitle =~ s/Documentation.*//g;
91 $longtitle = "FFmpeg documentation : " . $longtitle;
96 <meta name="keywords" content="$longtitle">
97 <meta name="Generator" content="$Texi2HTML::THISDOC{program}">
98 $Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
100 $Texi2HTML::THISDOC{program_authors}
107 $print_page_foot = \&FFmpeg_print_page_foot;
108 sub FFmpeg_print_page_foot($$)
116 # declare encoding in header
117 $IN_ENCODING = $ENCODING = "utf-8";
119 # no navigation elements
120 $SECTION_NAVIGATION = 0;
121 # the same for texi2html 5.0
124 # TOC and Chapter headings link
127 # print the TOC where @contents is used
128 $INLINE_CONTENTS = 1;