doc: add support for an optional navigation bar in texi2html pages
authorJanne Grunau <janne-libav@jannau.net>
Sun, 13 Nov 2011 18:32:35 +0000 (19:32 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Mon, 14 Nov 2011 00:12:15 +0000 (01:12 +0100)
The navigation header for the web pages lives in a different repository.
Read it during documentation regeneration to use the same navigation bar
on all pages.

doc/t2h.init

index 59a5ed8..7c35cd8 100644 (file)
@@ -9,9 +9,13 @@ $EXTRA_HEAD =
 <link rel="stylesheet" type="text/css" href="default.css" />
 ';
 
+
+my $LIBAV_NAVBAR = $ENV{"LIBAV_NAVBAR"} || '';
+
 $AFTER_BODY_OPEN =
-'<div id="container">
-<div id="body">';
+'<div id="container">' .
+"\n$LIBAV_NAVBAR\n" .
+'<div id="body">';
 
 $PRE_BODY_CLOSE = '</div></div>';