summaryrefslogtreecommitdiff
path: root/doc/site.conf
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-20 21:52:52 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-20 21:52:52 +0200
commitbe072b757650fbc9d1508db4f9a30c613cb7ffd1 (patch)
tree8dd145a41e2cf3c60d873956412fee23af49c95c /doc/site.conf
parentaee15f977a17dad50f3a56fa0411b356c013a3b1 (diff)
downloadgeiser-be072b757650fbc9d1508db4f9a30c613cb7ffd1.tar.gz
geiser-be072b757650fbc9d1508db4f9a30c613cb7ffd1.tar.bz2
Scripts for generating Geiser's website.
Diffstat (limited to 'doc/site.conf')
-rw-r--r--doc/site.conf53
1 files changed, 53 insertions, 0 deletions
diff --git a/doc/site.conf b/doc/site.conf
new file mode 100644
index 0000000..6d3be76
--- /dev/null
+++ b/doc/site.conf
@@ -0,0 +1,53 @@
+# -*- perl -*-
+
+$DO_CONTENTS = 0;
+$DO_SCONTENTS = 0;
+
+@MISC_BUTTONS = ();
+@CHAPTER_BUTTONS = ('FastBack', 'FastForward', 'Top');
+
+$USER = 'jao';
+$DATE = '';
+
+$CSS_LINES = '<link rel="stylesheet" type="text/css" href="./geiser.css">';
+
+$print_page_foot = \&page_foot;
+$print_chapter_footer = \&chap_footer;
+$print_chapter_header = \&chap_header;
+
+sub page_foot($) {
+ my $h = shift;
+ print $h "</body>";
+}
+
+sub button_link {
+ my $label = shift;
+ my $txt = shift;
+ my $trail = shift;
+ &$anchor('', $Texi2HTML::HREF{$label}, $txt) . ($trail || '&nbsp;&nbsp;')
+}
+
+$jao_navigation_links = '';
+
+sub chap_header {
+ my $fh = shift;
+ $jao_navigation_links = nav_links();
+ # print $fh $jao_navigation_links;
+ print $fh "<hr>";
+}
+
+sub chap_footer {
+ my $fh = shift;
+ # print $fh "<hr>";
+ print $fh $jao_navigation_links;
+}
+
+sub nav_links {
+ '<div class="navigation"><table border="0"><tr><td align="left">'
+ . button_link('Top', 'Geiser', '</td><td align="right">')
+ . button_link('FastBack', '<')
+ . button_link('FastForward', '>', '</td></tr></table></div>');
+}
+
+1;
+