From d19d01bf628124e6c93dd8c15d79cc5329f56943 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sun, 30 Sep 2012 06:02:34 +0200 Subject: doc: support the new website layout --- doc/t2h.init | 173 +++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 116 insertions(+), 57 deletions(-) (limited to 'doc/t2h.init') diff --git a/doc/t2h.init b/doc/t2h.init index d91d7b6bff..54235d23ae 100644 --- a/doc/t2h.init +++ b/doc/t2h.init @@ -6,73 +6,135 @@ sub Libav_end_section($$) $EXTRA_HEAD = ' - '; -$CSS_LINES = < EOT -my $LIBAV_NAVBAR = $ENV{"LIBAV_NAVBAR"} || ''; - -$AFTER_BODY_OPEN = -'
' . -"\n$LIBAV_NAVBAR\n" . -'
'; +my $TEMPLATE_HEADER = $ENV{"LIBAV_HEADER"} || <
'; @@ -83,9 +145,10 @@ $print_page_foot = \&Libav_print_page_foot; sub Libav_print_page_foot($$) { my $fh = shift; - print $fh '\n"; + my $program_string = T2H_DEFAULT_program_string(); + print $fh '
' . "\n"; + print $fh '' . $program_string; + print $fh "
\n"; } $float = \&Libav_float; @@ -107,11 +170,11 @@ sub Libav_float($$$$) if ($caption =~ /NOTE/) { - $class = "note"; + $class = "alert alert-info"; } elsif ($caption =~ /IMPORTANT/) { - $class = "important"; + $class = "alert alert-warning"; } return '
' . "$label\n" . $text . '
'; @@ -134,7 +197,7 @@ sub Libav_print_page_head($$) $longtitle = "Libav documentation : " . $longtitle; print $fh < $Texi2HTML::THISDOC{'copying'}