Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7de3869

Browse files
committed
Add target to build HTML documentation as single page
1 parent c86efdd commit 7de3869

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

doc/src/sgml/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.143 2010/05/13 11:49:47 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.144 2010/06/12 09:55:12 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -104,6 +104,10 @@ html-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl
104104
cp $(srcdir)/stylesheet.css html/
105105
touch $@
106106

107+
# single-page HTML
108+
postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl
109+
$(JADE.html.call) -V nochunks -V rootchunk -V '(define %root-filename% #f)' -V '(define use-output-dir #f)' -i include-index $<
110+
107111
HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
108112
@$(MKDIR_P) html
109113
$(JADE.html.call) -V html-index $<
@@ -351,6 +355,8 @@ clean:
351355
# text --- these are shipped, but not in this directory
352356
rm -f INSTALL HISTORY regress_README
353357
rm -f INSTALL.html HISTORY.html regress_README.html
358+
# other HTML
359+
rm -f postgres.html
354360
# print
355361
rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot
356362
# index

doc/src/sgml/docguide.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.84 2010/05/31 22:42:59 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.85 2010/06/12 09:55:12 petere Exp $ -->
22

33
<appendix id="docguide">
44
<title>Documentation</title>
@@ -564,6 +564,13 @@ checking for osx... osx
564564
proof-read the output, use <literal>draft</>:
565565
<screen>
566566
<prompt>doc/src/sgml$ </prompt><userinput>gmake draft</userinput>
567+
</screen>
568+
</para>
569+
570+
<para>
571+
To build the documentation as a single HTML page, use:
572+
<screen>
573+
<prompt>doc/src/sgml$ </prompt><userinput>gmake postgres.html</userinput>
567574
</screen>
568575
</para>
569576
</sect2>

0 commit comments

Comments
 (0)