diff --git a/Manual/repository.init b/Manual/repository.init index 24ebee3..1f8a3a1 100755 --- a/Manual/repository.init +++ b/Manual/repository.init @@ -1,4 +1,4 @@ -# -*-perl-*- +#!/usr/bin/perl # # repository.init -- This file initializes Texi2HTML program to # produce the repository documentation manual using the CentOS Web @@ -66,10 +66,12 @@ $SPLIT = 'section'; # beginning and at the end of chapters anyway. $SECTION_NAVIGATION = 0; -$print_page_head = \&T2H_XHTML_print_page_head; -$print_page_foot = \&T2H_XHTML_print_page_foot; -$print_frame = \&T2H_XHTML_print_frame; -$button_icon_img = \&T2H_XHTML_button_icon_img; +# Layout control +$print_page_head = \&T2H_XHTML_print_page_head; +$print_page_foot = \&T2H_XHTML_print_page_foot; +$print_frame = \&T2H_XHTML_print_frame; +$button_icon_img = \&T2H_XHTML_button_icon_img; +$print_navigation = \&T2H_XHTML_print_navigation; #FIXME update once it is more stabilized in texi2html.init sub T2H_XHTML_print_page_head @@ -231,3 +233,161 @@ sub t2h_xhtml_index_summary($$) return "
Jump to:   " . $nonalpha_text . $join . $alpha_text . '
'; } + +# Layout of navigation panel +sub T2H_XHTML_print_navigation +{ + my $fh = shift; + my $buttons = shift; + my $vertical = shift; + print $fh '"; +} + +# Use icons for navigation. +$ICONS = 1; + +# specify in this array which "buttons" should appear in which order +# in the navigation panel for sections; use ' ' for empty buttons (space) +@SECTION_BUTTONS = + ( + 'Back', 'Top', 'Forward' + ); + +# insert here name of icon images for buttons +# Icons are used, if $ICONS and resp. value are set +%ACTIVE_ICONS = + ( + 'Top', 'file:///usr/share/gimp/2.0/help/images/home.png', + 'Contents', '', + 'Overview', '', + 'Index', '', + 'This', '', + 'Back', 'file:///usr/share/gimp/2.0/help/images/prev.png', + 'FastBack', '', + 'Prev', 'file:///usr/share/gimp/2.0/help/images/prev.png', + 'Up', 'file:///usr/share/gimp/2.0/help/images/up.png', + 'Next', 'file:///usr/share/gimp/2.0/help/images/next.png', + 'NodeUp', 'file:///usr/share/gimp/2.0/help/images/up.png', + 'NodeNext', 'file:///usr/share/gimp/2.0/help/images/next.png', + 'NodePrev', 'file:///usr/share/gimp/2.0/help/images/next.png', + 'Following', 'file:///usr/share/gimp/2.0/help/images/next.png', + 'Forward', 'file:///usr/share/gimp/2.0/help/images/next.png', + 'FastForward', '', + 'About' , '', + 'First', '', + 'Last', '', + ' ', '' + ); + +# insert here name of icon images for these, if button is inactive +%PASSIVE_ICONS = + ( + 'Top', '', + 'Contents', '', + 'Overview', '', + 'Index', '', + 'This', '', + 'Back', '', + 'FastBack', '', + 'Prev', '', + 'Up', '', + 'Next', '', + 'NodeUp', '', + 'NodeNext', '', + 'NodePrev', '', + 'Following', '', + 'Forward', '', + 'FastForward', '', + 'About', '', + 'First', '', + 'Last', '', + );