diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-08-06 19:29:03 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-08-06 19:29:03 +0300 |
commit | 1096ae69c4d22d60df5bc89c15f7abbcf2c769c8 (patch) | |
tree | 71df94f7e9ec56b2ade592d5437ee12ca6fab100 | |
parent | 5a4ea9f719c6355b5eb577a6d6a40762667a8059 (diff) | |
download | vmod-dbrw-1096ae69c4d22d60df5bc89c15f7abbcf2c769c8.tar.gz vmod-dbrw-1096ae69c4d22d60df5bc89c15f7abbcf2c769c8.tar.bz2 |
Fix doc generator settings
-rw-r--r-- | doc/Makefile.am | 2 | ||||
-rw-r--r-- | doc/html.init | 29 |
2 files changed, 16 insertions, 15 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 77a70a7..dec7d7e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -23,7 +23,7 @@ EXTRA_DIST = gendocs_template gendocs.sh clean-local: rm -rf manual -GENDOCS=$(srcdir)/gendocs.sh +GENDOCS=$(srcdir)/gendocs.sh --no-copy-images --html '--init-file=$(abs_srcdir)/html.init' TEXI2DVI=texi2dvi -t '@set $(RENDITION)' diff --git a/doc/html.init b/doc/html.init index 7fecce7..8ffae34 100644 --- a/doc/html.init +++ b/doc/html.init @@ -27,11 +27,11 @@ set_from_init_file('CSS_LINES', ''); set_from_init_file('BODYTEXT', ""); -set_from_init_file('EXTRA_HEAD', "\ - <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('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{ <div id="content"> @@ -43,6 +43,7 @@ set_from_init_file('AFTER_BODY_OPEN', qq{ <li><a class="active" href="${top_html_dir}/manual.html">Documentation</a></li> </ul> </div> <!-- header --> +<div id="docmain"> }); sub gray_end_file($) @@ -57,13 +58,13 @@ sub gray_end_file($) } my $pre_body_close = $self->get_conf('PRE_BODY_CLOSE'); $pre_body_close = '' if (!defined($pre_body_close)); - return "</div> -<div class=\"copyright\"> + return "</div><!-- docmain --> +<div id=\"copyright\"> $program_text $pre_body_close -</div> -</div> +</div> <!-- copyright --> +</div> <!-- content --> </body> </html> "; @@ -81,12 +82,10 @@ set_from_init_file('PROGRAM_NAME_IN_FOOTER',1); set_from_init_file('DEFAULT_RULE', ''); set_from_init_file('BIG_RULE', ''); -# Turn off footer buttons in section split -set_from_init_file('SECTION_FOOTER_BUTTONS', undef); -#set_from_init_file('SECTION_BUTTONS', undef); -# Turn off navigation bars at the bottom of each section in chapter split mode +# 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') and (get_conf('SPLIT') eq 'chapter')); + if ((get_conf('SPLIT') eq 'chapter') or (get_conf('SPLIT') eq 'section')); # Use navigation icons set_from_init_file('ICONS', 1); @@ -155,9 +154,11 @@ my @gray_buttons = (\&gray_document_title, ' ', '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', |