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="style.min.css" />
21 my $TEMPLATE_HEADER2 = $ENV{"FFMPEG_HEADER2"} || <<EOT;
24 <div style="width: 95%; margin: auto">
27 my $TEMPLATE_FOOTER = $ENV{"FFMPEG_FOOTER"} || <<EOT;
36 $print_page_foot = \&FFmpeg_print_page_foot;
37 sub FFmpeg_print_page_foot($$)
40 my $program_string = defined &T2H_DEFAULT_program_string ?
41 T2H_DEFAULT_program_string() : program_string();
42 print $fh '<footer class="footer pagination-right">' . "\n";
43 print $fh '<span class="label label-info">' . $program_string;
44 print $fh "</span></footer></div></div></body>\n";
47 $float = \&FFmpeg_float;
49 sub FFmpeg_float($$$$)
54 my $shortcaption = shift;
57 if (exists($float->{'id'}))
59 $label = &$anchor($float->{'id'});
64 if ($caption =~ /NOTE/)
66 $class = "alert alert-info";
68 elsif ($caption =~ /IMPORTANT/)
70 $class = "alert alert-warning";
73 return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
76 $print_page_head = \&FFmpeg_print_page_head;
77 sub FFmpeg_print_page_head($$)
80 my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}";
81 $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
82 my $description = $DOCUMENT_DESCRIPTION;
83 $description = $longtitle if (!defined($description));
84 $description = "<meta name=\"description\" content=\"$description\">" if
86 $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
88 $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
89 $longtitle =~ s/Documentation.*//g;
90 $longtitle = "FFmpeg documentation : " . $longtitle;
95 <meta name="keywords" content="$longtitle">
96 <meta name="Generator" content="$Texi2HTML::THISDOC{program}">
97 $Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
99 $Texi2HTML::THISDOC{program_authors}
106 $print_page_foot = \&FFmpeg_print_page_foot;
107 sub FFmpeg_print_page_foot($$)
115 # declare encoding in header
116 $IN_ENCODING = $ENCODING = "utf-8";
118 # no navigation elements
119 $SECTION_NAVIGATION = 0;
120 # the same for texi2html 5.0
123 # TOC and Chapter headings link
126 # print the TOC where @contents is used
127 $INLINE_CONTENTS = 1;