Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6aa5d48

Browse files
committed
Control when/where navigation bars will appear: top & bottom of each page.
Include an additional button to the module index in the nav. bars if we generate a module index. Still need a button image, but the ALT text should do for now.
1 parent ab9d6f0 commit 6aa5d48

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

Doc/perl/l2hinit.perl

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ package Override;
1313

1414
package main;
1515

16-
$INFO = 1; # 0 = do not make a "About this document..." section
17-
$MAX_LINK_DEPTH = 3;
16+
$MAX_LINK_DEPTH = 2;
1817
$ADDRESS = '';
1918

2019
$NO_FOOTNODE = 1;
@@ -27,6 +26,11 @@ package main;
2726

2827
$ICONSERVER = '../icons';
2928

29+
# Control where the navigation bars should show up:
30+
$TOP_NAVIGATION = 1;
31+
$BOTTOM_NAVIGATION = 1;
32+
$AUTO_NAVIGATION = 0;
33+
3034
$BODYTEXT = 'bgcolor="#ffffff"';
3135
$CHILDLINE = "\n<p><hr>\n";
3236
$VERBOSITY = 0;
@@ -81,13 +85,15 @@ sub custom_driver_hook{
8185
}
8286

8387

88+
$CUSTOM_BUTTONS = '';
89+
8490
sub make_nav_panel{
8591
($NEXT_TITLE ? $NEXT : '')
8692
. ($UP_TITLE ? $UP : '')
8793
. ($PREVIOUS_TITLE ? $PREVIOUS : '')
8894
. $CONTENTS
95+
. $CUSTOM_BUTTONS
8996
. $INDEX
90-
# . " $CUSTOM_BUTTONS"
9197
. "\n<br>\n"
9298
. ($NEXT_TITLE ? "<b>Next:</b> $NEXT_TITLE\n" : '')
9399
. ($UP_TITLE ? "<b>Up:</b> $UP_TITLE\n" : '')
@@ -346,6 +352,11 @@ sub add_bbl_and_idx_dummy_commands {
346352
my $rx = "([\\\\]begin\\s*$O\\d+$C\\s*theindex[\\s\\S]*)"
347353
. "([\\\\]begin\\s*$O\\d+$C\\s*theindex)";
348354
s/$rx/\\textohtmlmoduleindex \1 \\textohtmlindex \2/o;
355+
# Add a button to the navigation areas:
356+
$CUSTOM_BUTTONS .= ("<a\n href=\"modindex.html\"><img"
357+
. " src=\"$ICONSERVER$dd"
358+
. "modules_motif.gif\" border=0"
359+
. " alt=\"[Modules]\"></a>");
349360
}
350361
else {
351362
$global{'max_id'} = $id; # not sure why....

0 commit comments

Comments
 (0)