aboutsummaryrefslogtreecommitdiff
path: root/doc/html.init
blob: d1e232abc42dddc4ac0365b79e39088eaa91a8b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Texi2any configuration for wydawca documentation. -*- perl -*-
# Copyright (C) 2009, 2010, 2011, 2015, 2017, 2019 Sergey Poznyakoff
#
# Wydawca is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Wydawca is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Wydawca.  If not, see <http://www.gnu.org/licenses/>.
use strict;

# User-defined variables
my $top_html_dir="/software/wydawca";
my $graphics_dir="$top_html_dir/graphics";
# End of user-defined variables
    
# Show TOC in place of the @contents directive.
set_from_init_file('INLINE_CONTENTS', 1);
# Do not show Texinfo menus.
set_from_init_file('SHOW_MENU', 0);
# Inhibit output of CSS lines in page headers.
set_from_init_file('CSS_LINES', '');

set_from_init_file('BODYTEXT', "");

set_from_init_file('EXTRA_HEAD', qq{
  <link rev="made" href="mailto:gray\@gnu.org.ua">
  <link rel="stylesheet" type="text/css" href="${top_html_dir}/gray.css">
  <link rel="stylesheet" type="text/css" href="${top_html_dir}/texi.css">
  <link rel="icon" type="image/png" href="/graphics/gnu-head-icon.png">});

set_from_init_file('AFTER_BODY_OPEN', qq{
<!--#include virtual="${top_html_dir}/inc/header.html" -->
<ul class="tabs">
  <li><a href="${top_html_dir}/wydawca.html">Main</a></li>
  <li><a href="${top_html_dir}/download.html">Downloads</a></li>
  <li><a class="active" href="${top_html_dir}/manual.html">Documentation</a></li>
  <li>
     <form method="post" action="/searchdoc"
           enctype="application/x-www-form-urlencoded">
       <div>
         <input id="searchinput" type="text" size="30" maxlength="255" name="q" valu
e="" />
         <input type="submit" name="search" value="Search" tabindex="12" />
         <input type="hidden" id="searchproject" name="p" value="wydawca" />
         <input type="hidden" name="t" value="searchdoc.in" />
       </div>
     </form>
  </li>

</ul>});

sub gray_end_file($)
{
    my $self = shift;
    my $program_text = '';
    if ($self->get_conf('PROGRAM_NAME_IN_FOOTER')) {
	my $program_string = &{$self->{'format_program_string'}}($self);
	$program_text = "<p>
  $program_string
</p>";
  }
  my $pre_body_close = $self->get_conf('PRE_BODY_CLOSE');
  $pre_body_close = '' if (!defined($pre_body_close));
  return "</div>
<div class=\"copyright\">
$program_text

$pre_body_close
</div>
</div>
</body>
</html>
";
}

texinfo_register_formatting_function('end_file', \&gray_end_file);

set_from_init_file('PRE_BODY_CLOSE',
		   'Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.');

# Print generating program name at the bottom of a page.
set_from_init_file('PROGRAM_NAME_IN_FOOTER',1);

# Disable horizontal bars
set_from_init_file('DEFAULT_RULE', '');
set_from_init_file('BIG_RULE', '');

# Turn off navigation bars at the bottom of each section in chapter split mode,
# or subsection in section split mode.
set_from_init_file('HEADERS', undef)
    if ((get_conf('SPLIT') eq 'chapter') or (get_conf('SPLIT') eq 'section'));
# Use navigation icons

set_from_init_file('ICONS', 1);

set_from_init_file('ACTIVE_ICONS',
    {
     'Top'         =>    "$graphics_dir/top.png",
     'Contents'    =>    "$graphics_dir/ctx.png",
     'Overview'    =>    '',
     'Index'       =>    "$graphics_dir/idx.png",
     'This'        =>    '',
     'Back'        =>    "$graphics_dir/left.png",
     'FastBack'    =>    "$graphics_dir/bwd.png",
     'Prev'        =>    "",
     'Up'          =>    "$graphics_dir/up.png",
     'Next'        =>    "$graphics_dir/right.png",
     'NodeUp'      =>    "$graphics_dir/left.png",
     'NodeNext'    =>    "$graphics_dir/up.png",
     'NodePrev'    =>    "$graphics_dir/right.png",
     'Following'   =>    "$graphics_dir/right.png",
     'Forward'     =>    "$graphics_dir/right.png",
     'FastForward' =>    "$graphics_dir/fwd.png",
     'About'       =>    '',
     'First'       =>    '',
     'Last'        =>    '',
     ' '           =>    ''
    });

sub gray_split_status()
{
    my $split = get_conf('SPLIT');
    if ($split eq '') {
	return '';
    } elsif ($split eq 'node') {
	return ' <span class="splitstatus">(split by node)</span>';
    } elsif ($split eq 'section') {
	return ' <span class="splitstatus">(split by section)</span>';
    } elsif ($split eq 'chapter') {
	return ' <span class="splitstatus">(split by chapter)</span>';
    }
}

sub gray_document_title($$)
{
    my $self = shift;
    my $direction = shift;
    my $status = gray_split_status();

    return q{<span class="title">} . $self->{title_string} . '</span>' .$status . q{<span class="title">:</span>};
}

sub gray_sec_ref($$)
{
    return q{<span class="navtext">Section:</span>};
}

sub gray_chap_ref($$)
{
    return q{<span class="navtext">Chapter:</span>};
}


my @gray_buttons = (\&gray_document_title, ' ',
		    \&gray_sec_ref, 'Back', 'Forward', ' ',
		    \&gray_chap_ref,
		    'FastBack', ' ', 'Up', ' ', 'FastForward', ' ',
		    'Contents', 'Index' );

set_from_init_file('TOP_BUTTONS', undef);
set_from_init_file('SECTION_BUTTONS', \@gray_buttons);
set_from_init_file('CHAPTER_BUTTONS', \@gray_buttons);
set_from_init_file('NODE_FOOTER_BUTTONS', \@gray_buttons);
set_from_init_file('SECTION_FOOTER_BUTTONS', \@gray_buttons);
set_from_init_file('MISC_BUTTONS',
		   [\&gray_document_title,
		    'Contents',
		    'Index',
		    ' ',
		    'About'
		   ]);

Return to:

Send suggestions and report system problems to the System administrator.