diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-04-23 15:08:22 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-04-23 15:08:22 +0300 |
commit | 353839b7a29a53aa754b98b02ede449c737a873a (patch) | |
tree | 77a151bf81a5185cce0112f5f8d2a2c5a2570e79 | |
parent | 1d0aa74665d44e84bba8070a49a74ab7cd1f52d0 (diff) | |
download | idest-353839b7a29a53aa754b98b02ede449c737a873a.tar.gz idest-353839b7a29a53aa754b98b02ede449c737a873a.tar.bz2 |
Fix doc generation.
Default Config file applied to all output formats, which is wrong.
Use a dedicated configuration file for html output formats, and
defaults for the rest.
* doc/Makefile.am (GENDOCS): Add html-specific configuration file.
* doc/Config: Rename to doc/html.init.
-rw-r--r-- | doc/Makefile.am | 4 | ||||
-rw-r--r-- | doc/html.init (renamed from doc/Config) | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 6aa3dee..ecc3fb8 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am | |||
@@ -24,7 +24,7 @@ EXTRA_DIST = \ | |||
24 | clean-local: | 24 | clean-local: |
25 | rm -rf manual | 25 | rm -rf manual |
26 | 26 | ||
27 | GENDOCS=$(srcdir)/gendocs.sh | 27 | GENDOCS=$(srcdir)/gendocs.sh --no-copy-images --html '--init-file=$(abs_srcdir)/html.init' |
28 | 28 | ||
29 | TEXI2DVI=texi2dvi -t '@set $(RENDITION)' | 29 | TEXI2DVI=texi2dvi -t '@set $(RENDITION)' |
30 | 30 | ||
@@ -35,7 +35,7 @@ manual: | |||
35 | TEXINPUTS=$(srcdir):$(top_srcdir)/build-aux:$(TEXINPUTS) \ | 35 | TEXINPUTS=$(srcdir):$(top_srcdir)/build-aux:$(TEXINPUTS) \ |
36 | MAKEINFO="$(MAKEINFO) $(MAKEINFOFLAGS)" \ | 36 | MAKEINFO="$(MAKEINFO) $(MAKEINFOFLAGS)" \ |
37 | TEXI2DVI="$(TEXI2DVI) -t @finalout" \ | 37 | TEXI2DVI="$(TEXI2DVI) -t @finalout" \ |
38 | $(GENDOCS) --no-copy-images $(PACKAGE) '$(PACKAGE_NAME) manual' | 38 | $(GENDOCS) $(PACKAGE) '$(PACKAGE_NAME) manual' |
39 | 39 | ||
40 | manual.tar.bz2: manual | 40 | manual.tar.bz2: manual |
41 | tar cfj manual.tar.bz2 manual | 41 | tar cfj manual.tar.bz2 manual |
diff --git a/doc/Config b/doc/html.init index f0da661..5157448 100644 --- a/doc/Config +++ b/doc/html.init | |||
@@ -77,12 +77,10 @@ set_from_init_file('PROGRAM_NAME_IN_FOOTER',1); | |||
77 | set_from_init_file('DEFAULT_RULE', ''); | 77 | set_from_init_file('DEFAULT_RULE', ''); |
78 | set_from_init_file('BIG_RULE', ''); | 78 | set_from_init_file('BIG_RULE', ''); |
79 | 79 | ||
80 | # Turn off footer buttons in section split | 80 | # Turn off navigation bars at the bottom of each section in chapter split mode, |
81 | set_from_init_file('SECTION_FOOTER_BUTTONS', undef); | 81 | # or subsection in section split mode. |
82 | #set_from_init_file('SECTION_BUTTONS', undef); | ||
83 | # Turn off navigation bars at the bottom of each section in chapter split mode | ||
84 | set_from_init_file('HEADERS', undef) | 82 | set_from_init_file('HEADERS', undef) |
85 | if (get_conf('SPLIT') and (get_conf('SPLIT') eq 'chapter')); | 83 | if ((get_conf('SPLIT') eq 'chapter') or (get_conf('SPLIT') eq 'section')); |
86 | # Use navigation icons | 84 | # Use navigation icons |
87 | 85 | ||
88 | set_from_init_file('ICONS', 1); | 86 | set_from_init_file('ICONS', 1); |
@@ -154,6 +152,7 @@ my @gray_buttons = (\&gray_document_title, ' ', | |||
154 | set_from_init_file('SECTION_BUTTONS', \@gray_buttons); | 152 | set_from_init_file('SECTION_BUTTONS', \@gray_buttons); |
155 | set_from_init_file('CHAPTER_BUTTONS', \@gray_buttons); | 153 | set_from_init_file('CHAPTER_BUTTONS', \@gray_buttons); |
156 | set_from_init_file('NODE_FOOTER_BUTTONS', \@gray_buttons); | 154 | set_from_init_file('NODE_FOOTER_BUTTONS', \@gray_buttons); |
155 | set_from_init_file('SECTION_FOOTER_BUTTONS', \@gray_buttons); | ||
157 | set_from_init_file('MISC_BUTTONS', | 156 | set_from_init_file('MISC_BUTTONS', |
158 | [\&gray_document_title, | 157 | [\&gray_document_title, |
159 | 'Contents', | 158 | 'Contents', |