From 7c8cd7a482c2df30e560da38cf11b1484712a27d Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Thu, 21 Dec 2017 18:25:59 +0000 Subject: [PATCH] doc: an optional all-in-one-file manual --- doc/.gitignore | 2 ++ doc/Makefile.in | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/.gitignore b/doc/.gitignore index d33f6032..8595060b 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -2,4 +2,6 @@ HTML.index bookindex.sgml html-stamp html/ +nochunks.dsl +repmgr.html version.sgml diff --git a/doc/Makefile.in b/doc/Makefile.in index 0a824f37..acfc47de 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -10,7 +10,7 @@ SGMLINCLUDE = -D . -D ${srcdir} SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged -JADE.html.call = $(JADE) $(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t sgml -i output-html +JADE.html.call = $(JADE) $(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -t sgml -i output-html ALLSGML := $(wildcard $(srcdir)/*.sgml) # to build bookindex @@ -26,10 +26,15 @@ html: html-stamp html-stamp: repmgr.sgml $(ALLSGML) $(GENERATED_SGML) stylesheet.dsl website-docs.css $(MKDIR_P) html - $(JADE.html.call) -i include-index $< + $(JADE.html.call) -d stylesheet.dsl -i include-index $< cp $(srcdir)/stylesheet.css $(srcdir)/website-docs.css html/ touch $@ +repmgr.html: repmgr.sgml $(ALLSGML) $(GENERATED_SGML) stylesheet.dsl website-docs.css + sed '/html-index-filename/a\ +(define nochunks #t)' nochunks.dsl + $(JADE.html.call) -d nochunks.dsl -i include-index $< >repmgr.html + version.sgml: ${repmgr_top_builddir}/repmgr_version.h { \ echo ""; \ @@ -37,7 +42,7 @@ version.sgml: ${repmgr_top_builddir}/repmgr_version.h HTML.index: repmgr.sgml $(ALMOSTALLSGML) stylesheet.dsl @$(MKDIR_P) html - $(JADE.html.call) -V html-index $< + $(JADE.html.call) -d stylesheet.dsl -V html-index $< website-docs.css: @$(MKDIR_P) html