From 7de38696c440a10dffce545f9d0e0d0d3716c136 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 12 Jun 2010 09:55:12 +0000 Subject: [PATCH] Add target to build HTML documentation as single page --- doc/src/sgml/Makefile | 8 +++++++- doc/src/sgml/docguide.sgml | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 52a33905120..c14dd7aaf10 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -2,7 +2,7 @@ # # PostgreSQL documentation makefile # -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.143 2010/05/13 11:49:47 petere Exp $ +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.144 2010/06/12 09:55:12 petere Exp $ # #---------------------------------------------------------------------------- @@ -104,6 +104,10 @@ html-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl cp $(srcdir)/stylesheet.css html/ touch $@ +# single-page HTML +postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl + $(JADE.html.call) -V nochunks -V rootchunk -V '(define %root-filename% #f)' -V '(define use-output-dir #f)' -i include-index $< + HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl @$(MKDIR_P) html $(JADE.html.call) -V html-index $< @@ -351,6 +355,8 @@ clean: # text --- these are shipped, but not in this directory rm -f INSTALL HISTORY regress_README rm -f INSTALL.html HISTORY.html regress_README.html +# other HTML + rm -f postgres.html # print rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot # index diff --git a/doc/src/sgml/docguide.sgml b/doc/src/sgml/docguide.sgml index 26abbb1999a..41dfc2abc8b 100644 --- a/doc/src/sgml/docguide.sgml +++ b/doc/src/sgml/docguide.sgml @@ -1,4 +1,4 @@ - + Documentation @@ -564,6 +564,13 @@ checking for osx... osx proof-read the output, use draft: doc/src/sgml$ gmake draft + + + + + To build the documentation as a single HTML page, use: + +doc/src/sgml$ gmake postgres.html -- 2.30.2