1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/docguide.sgml,v 1.17 1999/06/23 06 :19:36 thomas Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/docguide.sgml,v 1.18 1999/07/06 17 :19:41 thomas Exp $
3
3
Documentation Guide
4
4
Thomas Lockhart
5
5
@@ -817,15 +817,15 @@ be included below.
817
817
</thead>
818
818
<tbody>
819
819
<row>
820
- <entry><sgmltag>Book </sgmltag></entry>
820
+ <entry><sgmltag>book </sgmltag></entry>
821
821
<entry>Delimits a Book element</entry>
822
822
</row>
823
823
<row>
824
- <entry><sgmltag>Chapter </sgmltag></entry>
824
+ <entry><sgmltag>chapter </sgmltag></entry>
825
825
<entry>Delimits a Chapter element</entry>
826
826
</row>
827
827
<row>
828
- <entry><sgmltag>Appendix </sgmltag></entry>
828
+ <entry><sgmltag>appendix </sgmltag></entry>
829
829
<entry><sgmltag>Delimits a Appendix element</sgmltag></entry>
830
830
</row>
831
831
</tbody>
@@ -932,19 +932,20 @@ right, and I can verify the document with "nsgmls -s docguide.sgml".
932
932
</sect2>
933
933
</sect1>
934
934
935
- <sect1>
936
- <title>Building Documentation</title>
935
+ <sect1>
936
+ <title>Building Documentation</title>
937
937
938
- <para>
939
- GNU <application>make</application> is used to build documentation from the DocBook sources.
940
- There are a few environment definitions which may need to be set or modified for your installation.
941
- The <filename>Makefile</filename> looks for
942
- <filename>doc/../src/Makefile</filename>
943
- and (implicitly) for
944
- <filename>doc/../src/Makefile.custom</filename>
945
- to obtain environment information. On my system, the <filename>src/Makefile.custom</filename> looks like
938
+ <para>
939
+ GNU <application>make</application> is used to build documentation
940
+ from the DocBook sources. There are a few environment definitions
941
+ which may need to be set or modified for your installation.
942
+ The <filename>Makefile</filename> looks for
943
+ <filename>doc/../src/Makefile</filename> and (implicitly) for
944
+ <filename>doc/../src/Makefile.custom</filename> to obtain
945
+ environment information. On my system, the
946
+ <filename>src/Makefile.custom</filename> looks like
946
947
947
- <programlisting>
948
+ <programlisting>
948
949
# Makefile.custom
949
950
# Thomas Lockhart 1998-03-01
950
951
@@ -956,41 +957,100 @@ YFLAGS+= -v
956
957
957
958
HSTYLE= /home/tgl/SGML/db107.d/docbook/html
958
959
PSTYLE= /home/tgl/SGML/db107.d/docbook/print
959
- </programlisting>
960
+ </programlisting>
960
961
961
- where HSTYLE and PSTYLE determine the path to <filename>docbook.dsl</filename> for <acronym>HTML</acronym>
962
- and hardcopy (print) stylesheets, respectively. These stylesheet file names are for Norm Walsh's
963
- Modular Style Sheets; if other stylesheets are used then one can define HDSL and PDSL as the full path
964
- and file name for the stylesheet, as is done above for HSTYLE and PSTYLE.
965
- On many systems, these stylesheets will be found in packages installed in
966
- <filename>/usr/lib/sgml/</filename>,
967
- <filename>/usr/share/lib/sgml/</filename>,
968
- or
969
- <filename>/usr/local/lib/sgml/</filename>.
970
- </para>
962
+ where HSTYLE and PSTYLE determine the path to
963
+ <filename>docbook.dsl</filename> for <acronym>HTML</acronym>
964
+ and hardcopy (print) stylesheets, respectively. These stylesheet
965
+ file names are for Norm Walsh's
966
+ <productname>Modular Style Sheets</productname>; if other
967
+ stylesheets are used then one can define HDSL and PDSL as the full path
968
+ and file name for the stylesheet, as is done above for HSTYLE and PSTYLE.
969
+ On many systems, these stylesheets will be found in packages installed in
970
+ <filename>/usr/lib/sgml/</filename>,
971
+ <filename>/usr/share/lib/sgml/</filename>,
972
+ or
973
+ <filename>/usr/local/lib/sgml/</filename>.
974
+ </para>
971
975
972
- <para>
973
- <acronym>HTML</acronym> documentation packages can be generated from the <acronym>SGML</acronym> source by
974
- typing
975
- <programlisting>
976
+ <para>
977
+ <acronym>HTML</acronym> documentation packages can be generated
978
+ from the <acronym>SGML</acronym> source by typing
979
+ <programlisting>
976
980
% cd doc/src
977
981
% make tutorial.tar.gz
978
982
% make user.tar.gz
979
983
% make admin.tar.gz
980
984
% make programmer.tar.gz
981
985
% make postgres.tar.gz
982
986
% make install
983
- </programlisting>
984
- </para>
987
+ </programlisting>
988
+ </para>
985
989
986
- <para>
987
- These packages can be installed from the main documentation directory
988
- by typing
989
- <programlisting>
990
+ <para>
991
+ These packages can be installed from the main documentation directory
992
+ by typing
993
+ <programlisting>
990
994
% cd doc
991
995
% make install
992
- </programlisting>
993
- </para></sect1>
996
+ </programlisting>
997
+ </para>
998
+ </sect1>
999
+
1000
+ <sect1>
1001
+ <title>Manpages</title>
1002
+
1003
+ <para>
1004
+ We use the <application>docbook2man</application> utility to
1005
+ convert <productname>DocBook</productname>
1006
+ <sgmltag>REFENTRY</sgmltag> pages to *roff output suitable for man
1007
+ pages. At the time of writing, the utility required patching to
1008
+ successfully run on the <productname>Postgres</productname> markup,
1009
+ and we added a small amount of new functionality to allow setting
1010
+ the man page section in the output file name.
1011
+ </para>
1012
+
1013
+ <para>
1014
+ <application>docbook2man</application> is written in perl, and
1015
+ requires the CPAN package <literal>SGMLSpm</literal> to run. Also,
1016
+ it requires <application>nsgmls</application> to be available,
1017
+ which is included in the <application>jade</application>
1018
+ distribution. After installing these packages, then simply run
1019
+
1020
+ <programlisting>
1021
+ $ cd doc/src
1022
+ $ make man
1023
+ </programlisting>
1024
+
1025
+ which will result in a tar file being generated in the
1026
+ <filename>doc/src</filename> directory.
1027
+ </para>
1028
+
1029
+ <procedure>
1030
+ <title>docbook2man Installation Procedure</title>
1031
+
1032
+ <step performance="required">
1033
+ <para>
1034
+ Install the <application>docbook2man</application> package,
1035
+ available at
1036
+ <ulink url="http://shell.ipoline.com/~elmert/comp/docbook2X/">http://shell.ipoline.com/~elmert/comp/docbook2X/</ulink>
1037
+ </para>
1038
+ </step>
1039
+
1040
+ <step performance="required">
1041
+ <para>
1042
+ Install the SGMLSpm perl module, available from CPAN mirrors.
1043
+ </para>
1044
+ </step>
1045
+
1046
+ <step performance="required">
1047
+ <para>
1048
+ Install <application>nsgmls</application> if not already
1049
+ available from your <application>jade</application> installation.
1050
+ </para>
1051
+ </step>
1052
+ </procedure>
1053
+ </sect1>
994
1054
995
1055
<sect1>
996
1056
<title>Hardcopy Generation for v6.5</title>
0 commit comments