X-Git-Url: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?p=ffmpeg.git;p=ffmpeg.git;a=blobdiff_plain;f=doc%2Ft2h.init;h=c41be2ef3762f5c0b64635a7f34ff5236774c3fa;hp=015712f699e3228ac894fb6bb291de2b09dbca43;hb=63c3e35332838fca19b7ffdae13233b0f3759402;hpb=5f268ca5c57f3ad3050b58f513651c17304d3653 diff --git a/doc/t2h.init b/doc/t2h.init index 015712f699..c41be2ef37 100644 --- a/doc/t2h.init +++ b/doc/t2h.init @@ -1,19 +1,35 @@ +# Init file for texi2html. + +# This is deprecated, and the makeinfo/texi2any version is doc/t2h.pm + # no horiz rules between sections $end_section = \&FFmpeg_end_section; sub FFmpeg_end_section($$) { } -$EXTRA_HEAD = -' - -'; +my $TEMPLATE_HEADER1 = $ENV{"FFMPEG_HEADER1"} || < + + + + + FFmpeg documentation + + +EOT -$AFTER_BODY_OPEN = -'
-
'; +my $TEMPLATE_HEADER2 = $ENV{"FFMPEG_HEADER2"} || < + +
+EOT -$PRE_BODY_CLOSE = '
'; +my $TEMPLATE_FOOTER = $ENV{"FFMPEG_FOOTER"} || < + + +EOT $SMALL_RULE = ''; $BODYTEXT = ''; @@ -22,16 +38,47 @@ $print_page_foot = \&FFmpeg_print_page_foot; sub FFmpeg_print_page_foot($$) { my $fh = shift; - print $fh '\n"; + my $program_string = defined &T2H_DEFAULT_program_string ? + T2H_DEFAULT_program_string() : program_string(); + print $fh '
' . "\n"; + print $fh '' . $program_string; + print $fh "
\n"; +} + +$float = \&FFmpeg_float; + +sub FFmpeg_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/) + { + $class = "alert alert-info"; + } + elsif ($caption =~ /IMPORTANT/) + { + $class = "alert alert-warning"; + } + + return '
' . "$label\n" . $text . '
'; } $print_page_head = \&FFmpeg_print_page_head; sub FFmpeg_print_page_head($$) { my $fh = shift; - my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}"; + my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}"; $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'}; my $description = $DOCUMENT_DESCRIPTION; $description = $longtitle if (!defined($description)); @@ -44,30 +91,31 @@ sub FFmpeg_print_page_head($$) $longtitle = "FFmpeg documentation : " . $longtitle; print $fh < +$TEMPLATE_HEADER1 +$description + + $Texi2HTML::THISDOC{'copying'} - -$longtitle - -$description - - - - $encoding -$CSS_LINES -$EXTRA_HEAD - +$TEMPLATE_HEADER2 +EOT +} - -$AFTER_BODY_OPEN +$print_page_foot = \&FFmpeg_print_page_foot; +sub FFmpeg_print_page_foot($$) +{ + my $fh = shift; + print $fh <