aboutsummaryrefslogtreecommitdiff
path: root/doc/html.init
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html.init')
-rw-r--r--doc/html.init178
1 files changed, 178 insertions, 0 deletions
diff --git a/doc/html.init b/doc/html.init
new file mode 100644
index 0000000..eb349e3
--- /dev/null
+++ b/doc/html.init
@@ -0,0 +1,178 @@
1# Texi2any configuration for wydawca documentation. -*- perl -*-
2# Copyright (C) 2009-2011, 2015 Sergey Poznyakoff
3#
4# Wydawca is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# Wydawca is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with Wydawca. If not, see <http://www.gnu.org/licenses/>.
16use strict;
17
18# User-defined variables
19my $top_html_dir="/software/wydawca";
20my $graphics_dir="$top_html_dir/graphics";
21# End of user-defined variables
22
23# Show TOC in place of the @contents directive.
24set_from_init_file('INLINE_CONTENTS', 1);
25# Do not show Texinfo menus.
26set_from_init_file('SHOW_MENU', 0);
27# Inhibit output of CSS lines in page headers.
28set_from_init_file('CSS_LINES', '');
29
30set_from_init_file('BODYTEXT', "");
31
32set_from_init_file('EXTRA_HEAD', qq{
33 <link rev="made" href="mailto:gray\@gnu.org.ua">
34 <link rel="stylesheet" type="text/css" href="${top_html_dir}/gray.css">
35 <link rel="stylesheet" type="text/css" href="${top_html_dir}/texi.css">
36 <link rel="icon" type="image/png" href="/graphics/gnu-head-icon.png">});
37
38set_from_init_file('AFTER_BODY_OPEN', qq{
39<!--#include virtual="${top_html_dir}/inc/header.html" -->
40<ul class="tabs">
41 <li><a href="${top_html_dir}/wydawca.html">Main</a></li>
42 <li><a href="${top_html_dir}/download.html">Downloads</a></li>
43 <li><a class="active" href="${top_html_dir}/manual.html">Documentation</a></li>
44 <li>
45 <form method="post" action="/searchdoc"
46 enctype="application/x-www-form-urlencoded">
47 <div>
48 <input id="searchinput" type="text" size="30" maxlength="255" name="q" valu
49e="" />
50 <input type="submit" name="search" value="Search" tabindex="12" />
51 <input type="hidden" id="searchproject" name="p" value="wydawca" />
52 <input type="hidden" name="t" value="searchdoc.in" />
53 </div>
54 </form>
55 </li>
56
57</ul>});
58
59sub gray_end_file($)
60{
61 my $self = shift;
62 my $program_text = '';
63 if ($self->get_conf('PROGRAM_NAME_IN_FOOTER')) {
64 my $program_string = &{$self->{'format_program_string'}}($self);
65 $program_text = "<p>
66 $program_string
67</p>";
68 }
69 my $pre_body_close = $self->get_conf('PRE_BODY_CLOSE');
70 $pre_body_close = '' if (!defined($pre_body_close));
71 return "</div>
72<div class=\"copyright\">
73$program_text
74
75$pre_body_close
76</div>
77</div>
78</body>
79</html>
80";
81}
82
83texinfo_register_formatting_function('end_file', \&gray_end_file);
84
85set_from_init_file('PRE_BODY_CLOSE',
86 'Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.');
87
88# Print generating program name at the bottom of a page.
89set_from_init_file('PROGRAM_NAME_IN_FOOTER',1);
90
91# Disable horizontal bars
92set_from_init_file('DEFAULT_RULE', '');
93set_from_init_file('BIG_RULE', '');
94
95# Turn off navigation bars at the bottom of each section in chapter split mode,
96# or subsection in section split mode.
97set_from_init_file('HEADERS', undef)
98 if ((get_conf('SPLIT') eq 'chapter') or (get_conf('SPLIT') eq 'section'));
99# Use navigation icons
100
101set_from_init_file('ICONS', 1);
102
103set_from_init_file('ACTIVE_ICONS',
104 {
105 'Top' => "$graphics_dir/top.png",
106 'Contents' => "$graphics_dir/ctx.png",
107 'Overview' => '',
108 'Index' => "$graphics_dir/idx.png",
109 'This' => '',
110 'Back' => "$graphics_dir/left.png",
111 'FastBack' => "$graphics_dir/bwd.png",
112 'Prev' => "",
113 'Up' => "$graphics_dir/up.png",
114 'Next' => "$graphics_dir/right.png",
115 'NodeUp' => "$graphics_dir/left.png",
116 'NodeNext' => "$graphics_dir/up.png",
117 'NodePrev' => "$graphics_dir/right.png",
118 'Following' => "$graphics_dir/right.png",
119 'Forward' => "$graphics_dir/right.png",
120 'FastForward' => "$graphics_dir/fwd.png",
121 'About' => '',
122 'First' => '',
123 'Last' => '',
124 ' ' => ''
125 });
126
127sub gray_split_status()
128{
129 my $split = get_conf('SPLIT');
130 if ($split eq '') {
131 return '';
132 } elsif ($split eq 'node') {
133 return ' <span class="splitstatus">(split by node)</span>';
134 } elsif ($split eq 'section') {
135 return ' <span class="splitstatus">(split by section)</span>';
136 } elsif ($split eq 'chapter') {
137 return ' <span class="splitstatus">(split by chapter)</span>';
138 }
139}
140
141sub gray_document_title($$)
142{
143 my $self = shift;
144 my $direction = shift;
145 my $status = gray_split_status();
146
147 return q{<span class="title">} . $self->{title_string} . '</span>' .$status . q{<span class="title">:</span>};
148}
149
150sub gray_sec_ref($$)
151{
152 return q{<span class="navtext">Section:</span>};
153}
154
155sub gray_chap_ref($$)
156{
157 return q{<span class="navtext">Chapter:</span>};
158}
159
160
161my @gray_buttons = (\&gray_document_title, ' ',
162 \&gray_sec_ref, 'Back', 'Forward', ' ',
163 \&gray_chap_ref,
164 'FastBack', ' ', 'Up', ' ', 'FastForward', ' ',
165 'Contents', 'Index' );
166
167set_from_init_file('TOP_BUTTONS', undef);
168set_from_init_file('SECTION_BUTTONS', \@gray_buttons);
169set_from_init_file('CHAPTER_BUTTONS', \@gray_buttons);
170set_from_init_file('NODE_FOOTER_BUTTONS', \@gray_buttons);
171set_from_init_file('SECTION_FOOTER_BUTTONS', \@gray_buttons);
172set_from_init_file('MISC_BUTTONS',
173 [\&gray_document_title,
174 'Contents',
175 'Index',
176 ' ',
177 'About'
178 ]);

Return to:

Send suggestions and report system problems to the System administrator.