diff --git a/doc/Config b/doc/Config
index e07180b..0e01134 100644
--- a/doc/Config
+++ b/doc/Config
@@ -1,4 +1,4 @@
-# Texi2html configuration for PAM-Modules documentation. -*- perl -*-
+# Texi2any configuration for pam-modules documentation. -*- perl -*-
# Copyright (C) 2009, 2012, 2014-2015 Sergey Poznyakoff
#
# PAM-Modules is free software; you can redistribute it and/or modify
@@ -13,352 +13,150 @@
#
# You should have received a copy of the GNU General Public License
# along with PAM-Modules. If not, see .
+use strict;
-$top_html_dir="/software/pam-modules";
-$graphics_dir="$top_html_dir/graphics";
-
-## texi2html configuration
-
+my $top_html_dir="/software/pam-modules";
+my $graphics_dir="$top_html_dir/graphics";
+
# Show TOC in place of the @contents directive.
-$INLINE_CONTENTS = 1;
+set_from_init_file('INLINE_CONTENTS', 1);
# Do not show Texinfo menus.
-$SHOW_MENU = 0;
+set_from_init_file('SHOW_MENU', 0);
# Inhibit output of CSS lines in page headers.
-$CSS_LINES='';
-# Print footnotes at the end of each file (if the document is split).
-$SEPARATED_FOOTNOTES = 0;
+set_from_init_file('CSS_LINES', '');
-$BODYTEXT = "";
+set_from_init_file('BODYTEXT', "");
-$EXTRA_HEAD=qq{
-
+set_from_init_file('EXTRA_HEAD', qq{
+
- };
+ });
-$AFTER_BODY_OPEN=qq{
+set_from_init_file('AFTER_BODY_OPEN', qq{
};
+});
-$PRE_BODY_CLOSE="Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.";
-
-$format_map{'multitable'}='table class="multitable"';
+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 = "
+ $program_string
+
";
+ }
+ my $pre_body_close = $self->get_conf('PRE_BODY_CLOSE');
+ $pre_body_close = '' if (!defined($pre_body_close));
+ return "
+
+$program_text
-$SMALL_RULE = '';
-$DEFAULT_RULE = '';
-$MIDDLE_RULE = '';
-# This is output at the end of a section.
-$BIG_RULE = '';
+$pre_body_close
+