OSDN Git Service

Add target to build HTML documentation as single page
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 12 Jun 2010 09:55:12 +0000 (09:55 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 12 Jun 2010 09:55:12 +0000 (09:55 +0000)
doc/src/sgml/Makefile
doc/src/sgml/docguide.sgml

index 52a3390..c14dd7a 100644 (file)
@@ -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
index 26abbb1..41dfc2a 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.84 2010/05/31 22:42:59 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.85 2010/06/12 09:55:12 petere Exp $ -->
 
 <appendix id="docguide">
  <title>Documentation</title>
@@ -566,6 +566,13 @@ checking for osx... osx
 <prompt>doc/src/sgml$ </prompt><userinput>gmake draft</userinput>
 </screen>
    </para>
+
+   <para>
+    To build the documentation as a single HTML page, use:
+<screen>
+<prompt>doc/src/sgml$ </prompt><userinput>gmake postgres.html</userinput>
+</screen>
+   </para>
  </sect2>
 
  <sect2>