1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/docguide.sgml,v 1.11 1998/10/30 19:36:57 thomas Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/docguide.sgml,v 1.12 1998/12/18 16:17:29 thomas Exp $
3
3
Documentation Guide
4
4
Thomas Lockhart
5
5
6
6
$Log: docguide.sgml,v $
7
+ Revision 1.12 1998/12/18 16:17:29 thomas
8
+ Include more details on editing with Emacs.
9
+ Remove mention of the old "migration" flat files.
10
+ Change URLs for resources to point to areas, not particular files.
11
+ That way things stay correct even when version of tools change.
12
+ Suggested by Vince Vielhaber.
13
+
7
14
Revision 1.11 1998/10/30 19:36:57 thomas
8
15
Minor editing and markup changes as a result of preparing the Postscript
9
16
documentation for v6.4.
@@ -114,6 +121,57 @@ There are man pages available for installation, as well as a large number
114
121
of plain-text README-type files throughout the <productname>Postgres</productname>
115
122
source tree.
116
123
124
+ <sect1>
125
+ <title>The Documentation Project</title>
126
+
127
+ <para>
128
+ Packaged documentation is available in both
129
+ <acronym>HTML</acronym> and <firstterm>Postscript</firstterm>
130
+ formats. These are available as part of the standard
131
+ <productname>Postgres</productname> installation. We discuss here
132
+ working with the documentation sources and generating documentation
133
+ packages.
134
+
135
+ <para>
136
+ The purpose of <productname>DocBook</productname> <acronym>SGML</acronym>
137
+ is to allow an author to
138
+ specify the structure and content of a document (e.g. using the
139
+ <productname>DocBook</productname> <acronym>DTD</acronym>), and to
140
+ have a document style define how that content is rendered into a
141
+ final form (e.g. using Norm Walsh's
142
+ <productname>Modular Style Sheets</productname>).</para>
143
+
144
+ <para>
145
+ See <ulink url="http://nis-www.lanl.gov/~rosalia/mydocs/docbook-intro.html">
146
+ Introduction to DocBook</ulink> for a nice "quickstart" summary of
147
+ DocBook features.
148
+ <ulink url="http://www.ora.com/homepages/dtdparse/docbook/3.0/"> DocBook Elements</ulink>
149
+ provides a powerful cross-reference for features of
150
+ <productname>DocBook</productname>.
151
+
152
+ <para>
153
+ This documentation set is constructed using several tools, including
154
+ James Clark's
155
+ <ulink url="http://www.jclark.com/jade/"> <productname>jade</productname></ulink>
156
+ and Norm Walsh's
157
+ <ulink url="http://www.berkshire.net/~norm/docbook/dsssl">Modular DocBook Stylesheets</ulink>.
158
+
159
+ <para>
160
+ Currently, hardcopy is produced by importing <firstterm>Rich Text
161
+ Format</firstterm> (<acronym>RTF</acronym>) output from
162
+ <application>jade</application> into
163
+ <productname>ApplixWare</productname> for minor formatting fixups then
164
+ exporting as a Postscript file.</para>
165
+
166
+ <para>
167
+ <ulink url="http://sunsite.unc.edu/pub/packages/TeX/systems/unix/">
168
+ <productname>TeX</productname></ulink> is a supported format for
169
+ <application>jade</application> output, but was not used at this time
170
+ for several reasons, including the inability to make minor format
171
+ fixes before committing to hardcopy and generally inadequate table
172
+ support in the <productname>TeX</productname>
173
+ stylesheets.</para>
174
+
117
175
<sect1>
118
176
<title>Documentation Sources</title>
119
177
@@ -251,6 +309,7 @@ The Administrator's Guide. Include installation and release notes.
251
309
Disable for the hardcopy production release.
252
310
Too much tabular info and not very helpful in hardcopy.
253
311
- thomas 1998-10-27
312
+ -->
254
313
255
314
<sect2>
256
315
<title>Documentation Files</title>
@@ -481,15 +540,6 @@ Status
481
540
<row><entry> ./doc/README.support </entry><entry> Not converted </entry></row>
482
541
<row><entry> ./doc/TODO.GEQO </entry><entry> Removed. Superceded by geqo.sgml </entry></row>
483
542
<row><entry> ./doc/userguide.ps </entry><entry> Removed (converted to SGML) </entry></row>
484
- <row><entry> ./migration/1.02_to_1.02.1 </entry><entry> Removed. Superceded by release.sgml </entry></row>
485
- <row><entry> ./migration/1.09_to_6.0 </entry><entry> Removed. Superceded by release.sgml </entry></row>
486
- <row><entry> ./migration/1.0_to_1.01 </entry><entry> Removed. Superceded by release.sgml </entry></row>
487
- <row><entry> ./migration/6.0_to_6.1 </entry><entry> Removed. Superceded by release.sgml </entry></row>
488
- <row><entry> ./migration/6.1_to_6.1.1 </entry><entry> Removed. Superceded by release.sgml </entry></row>
489
- <row><entry> ./migration/6.1_to_6.2 </entry><entry> Removed. Superceded by release.sgml </entry></row>
490
- <row><entry> ./migration/6.2.1_to_6.3 </entry><entry> Removed. Superceded by release.sgml </entry></row>
491
- <row><entry> ./migration/6.2_to_6.2.1 </entry><entry> Removed. Superceded by release.sgml </entry></row>
492
- <row><entry> ./migration/6.3.1_to_6.3.2 </entry><entry> Removed. Superceded by release.sgml </entry></row>
493
543
<row><entry> ./src/DEVELOPERS </entry><entry> Not converted </entry></row>
494
544
<row><entry> ./src/backend/access/nbtree/README </entry><entry> Not converted </entry></row>
495
545
<row><entry> ./src/backend/catalog/README </entry><entry> Not converted </entry></row>
@@ -670,64 +720,6 @@ Status
670
720
</tgroup>
671
721
</table>
672
722
673
- -->
674
-
675
- <sect1>
676
- <title>The Documentation Project</title>
677
-
678
- <para>
679
- Packaged documentation is available in both
680
- <acronym>HTML</acronym> and <firstterm>Postscript</firstterm>
681
- formats. These are available as part of the standard
682
- <productname>Postgres</productname> installation. We discuss here
683
- working with the documentation sources and generating documentation
684
- packages.
685
-
686
- <note>
687
- <para>
688
- This is the first release of new <productname>Postgres</productname>
689
- documentation in three years. The content and environment are in flux
690
- and still evolving.
691
- </para>
692
- </note></para>
693
-
694
- <para>
695
- The purpose of <acronym>SGML</acronym> is to allow an author to
696
- specify the structure and content of a document (e.g. using the
697
- <productname>DocBook</productname> <acronym>DTD</acronym>), and to
698
- have the document style define how that content is rendered into a
699
- final form (e.g. using Norm Walsh's stylesheets).</para>
700
-
701
- <para>
702
- See <ulink url="http://nis-www.lanl.gov/~rosalia/mydocs/docbook-intro.html">
703
- Introduction to DocBook</ulink> for a nice "quickstart" summary of
704
- DocBook features.
705
- <ulink url="http://www.ora.com/homepages/dtdparse/docbook/3.0/"> DocBook
706
- Elements</ulink> provides a powerful cross-reference for features of
707
- <productname>DocBook</productname>.</para>
708
-
709
- <para>
710
- This documentation set is constructed using several tools, including
711
- James Clark's
712
- <ulink url="http://www.jclark.com/jade/"> <productname>jade</productname></ulink>
713
- and Norm Walsh's
714
- <ulink url="http://www.berkshire.net/~norm/docbook/dsssl">Modular DocBook Stylesheets</ulink>.
715
-
716
- <para>
717
- Currently, hardcopy is produced by importing <firstterm>Rich Text
718
- Format</firstterm> (<acronym>RTF</acronym>) output from
719
- <application>jade</application> into
720
- <productname>ApplixWare</productname> for minor formatting fixups then
721
- exporting as a Postscript file.</para>
722
-
723
- <para>
724
- <ulink url="http://sunsite.unc.edu/pub/packages/TeX/systems/unix/">
725
- <productname>TeX</productname></ulink> is a supported format for
726
- <application>jade</application> output, but was not used at this time
727
- for several reasons, including the inability to make minor format
728
- fixes before committing to hardcopy and generally inadequate table
729
- support in the <productname>TeX</productname>
730
- stylesheets.</para>
731
723
732
724
<sect2>
733
725
<title>Styles and Conventions</title>
@@ -776,12 +768,12 @@ be included below.
776
768
-->
777
769
778
770
<sect2>
779
- <title>Authoring Tools</title>
771
+ <title>SGML Authoring Tools</title>
780
772
781
773
<para>
782
- The current <acronym>Postgres</acronym> documentation set is written using
774
+ The current <acronym>Postgres</acronym> documentation set was written using
783
775
a plain text editor (or emacs/psgml; see below) with the content marked up using
784
- <acronym>SGML</acronym>.
776
+ <acronym>SGML</acronym> DocBook tags .
785
777
786
778
<para>
787
779
<acronym>SGML</acronym> and <productname>DocBook</productname> do not suffer
@@ -793,7 +785,63 @@ On some systems (e.g. RedHat Linux) these tools are provided in a typical full i
793
785
<title>emacs/psgml</title>
794
786
795
787
<para>
796
- When using emacs/psgml, a comfortable way of working with
788
+ <application>emacs</application> (and <application>xemacs</application>) have
789
+ an <acronym>SGML</acronym> <firstterm>major mode</firstterm>. When properly configured,
790
+ this will allow you to use <application>emacs</application> to insert tags and
791
+ check markup consistancy.
792
+
793
+ <para>
794
+ Put the following in your <filename>~/.emacs</filename> environment file:
795
+
796
+ <programlisting>
797
+ ; ********** for SGML mode (psgml)
798
+
799
+ (setq sgml-catalog-files "/usr/lib/sgml/CATALOG")
800
+ (setq sgml-local-catalogs "/usr/lib/sgml/CATALOG")
801
+
802
+ (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t )
803
+ </programlisting>
804
+
805
+ and add an entry in the same file
806
+ for <acronym>SGML</acronym> into the (existing) definition for
807
+ auto-mode-alist:
808
+
809
+ <programlisting>
810
+ (setq
811
+ auto-mode-alist
812
+ '(("\\.sgml$" . sgml-mode)
813
+ ))
814
+ </programlisting>
815
+
816
+ Each <acronym>SGML</acronym> source file has the following block at the
817
+ end of the file:
818
+
819
+ <programlisting>
820
+ <sgmltag>!-- Keep this comment at the end of the file
821
+ Local variables:
822
+ mode: sgml
823
+ sgml-omittag:t
824
+ sgml-shorttag:t
825
+ sgml-minimize-attributes:nil
826
+ sgml-always-quote-attributes:t
827
+ sgml-indent-step:1
828
+ sgml-indent-data:t
829
+ sgml-parent-document:nil
830
+ sgml-default-dtd-file:"./reference.ced"
831
+ sgml-exposed-tags:nil
832
+ sgml-local-catalogs:"/usr/lib/sgml/catalog"
833
+ sgml-local-ecat-files:nil
834
+ End:
835
+ --<sgmltag>
836
+ </programlisting>
837
+
838
+ <para>
839
+ The <productname>Postgres</productname> distribution includes a
840
+ parsed DTD definitions file <filename>reference.ced</filename>.
841
+ You may find that
842
+
843
+ <para>
844
+ When using <application>emacs</application>/psgml, a comfortable way of working with
797
845
these separate files of book parts is to insert a proper DOCTYPE
798
846
declaration while you're editing them. If you are working on this source, for instance,
799
847
it's an appendix chapter, so you would specify the document as an "appendix" instance of
@@ -1041,9 +1089,10 @@ and <acronym>RTF</acronym>.
1041
1089
1042
1090
<para>
1043
1091
These instructions do not cover new <application>jade</application>/DocBook
1044
- support in the <productname>sgml-tools</productname> package. The authors have
1045
- not tried this package since it adopted DocBook, but it is almost certainly
1046
- a good candidate for use.
1092
+ support in the
1093
+ <ulink url="http://www.sgmltools.org/"><productname>sgml-tools</productname></ulink>
1094
+ package. The authors have not tried this package since it adopted DocBook,
1095
+ but it is almost certainly a good candidate for use.
1047
1096
1048
1097
<sect3><title>Prerequisites</title>
1049
1098
@@ -1061,21 +1110,23 @@ a good candidate for use.
1061
1110
1062
1111
<itemizedlist>
1063
1112
<listitem>
1064
- <para><ulink url="ftp://ftp.jclark.com/pub/jade/jade1_1.zip">
1065
- James Clark's <productname>Jade</productname> version 1.1</ulink>
1113
+ <para><ulink url="ftp://ftp.jclark.com/pub/jade/">
1114
+ James Clark's <productname>Jade</productname></ulink>
1115
+ (version 1.1 in file <filename>jade1_1.zip</filename> was current at the time of writing)
1066
1116
</para></listitem>
1067
1117
<listitem>
1068
1118
<para><ulink url="http://www.ora.com/davenport/docbook/current/docbk30.zip">
1069
1119
<productname>DocBook</productname> version 3.0</ulink>
1070
1120
</para></listitem>
1071
1121
<listitem>
1072
- <para><ulink url="http://nwalsh.com/docbook/dsssl/db119.zip ">
1073
- Norman Walsh's <productname>Modular Stylesheets</productname>
1074
- version 1.19</ulink>
1122
+ <para><ulink url="http://nwalsh.com/docbook/dsssl/">
1123
+ Norman Walsh's <productname>Modular Stylesheets</productname></ulink>
1124
+ ( version 1.19 was used to produce these documents)
1075
1125
</para></listitem>
1076
1126
<listitem>
1077
- <para><ulink url="ftp://ftp.lysator.liu.se/pub/sgml/psgml-1.0.1.tar.gz">
1078
- Lennart Staflin's <productname>PSGML</productname> version 1.0.1</ulink>
1127
+ <para><ulink url="ftp://ftp.lysator.liu.se/pub/sgml/">
1128
+ Lennart Staflin's <productname>PSGML</productname></ulink>
1129
+ (version 1.0.1 in <filename>psgml-1.0.1.tar.gz</filename> was available at the time of writing)
1079
1130
</para></listitem>
1080
1131
</itemizedlist>
1081
1132
@@ -1266,14 +1317,14 @@ kit in a suitable place. A good place to dot this would be
1266
1317
directory tree under <filename>/usr/local/share/docbook</filename>.
1267
1318
The command will be something like
1268
1319
<programlisting>
1269
- unzip -aU db107 .zip
1320
+ unzip -aU db119 .zip
1270
1321
</programlisting>
1271
1322
</para>
1272
1323
1273
1324
<step performance="required">
1274
1325
<para>One way to test the installation is to build the
1275
1326
<acronym>HTML</acronym> and <acronym>RTF</acronym> forms of the
1276
- <productname>PostgreSQL</productname> manual.
1327
+ <citetitle>< productname>PostgreSQL</productname> User's Guide</citetitle>.
1277
1328
1278
1329
<substeps>
1279
1330
@@ -1316,7 +1367,7 @@ URL.</para>
1316
1367
<para>Unpack the distribution file, run configure, make and make
1317
1368
install to put the byte-compiled files and info library in place.
1318
1369
1319
- <step performance="required">
1370
+ <step performance="required" id="psgml-setup" >
1320
1371
<para>
1321
1372
Then add the following lines to your
1322
1373
<filename>/usr/local/share/emacs/site-lisp/site-start.el</filename>
@@ -1522,3 +1573,19 @@ Run <productname>texhash</productname> to update the tex database.
1522
1573
1523
1574
</appendix>
1524
1575
1576
+ <!-- Keep this comment at the end of the file
1577
+ Local variables:
1578
+ mode: sgml
1579
+ sgml-omittag:t
1580
+ sgml-shorttag:t
1581
+ sgml-minimize-attributes:nil
1582
+ sgml-always-quote-attributes:t
1583
+ sgml-indent-step:1
1584
+ sgml-indent-data:t
1585
+ sgml-parent-document:nil
1586
+ sgml-default-dtd-file:"./reference.ced"
1587
+ sgml-exposed-tags:nil
1588
+ sgml-local-catalogs:"/usr/lib/sgml/catalog"
1589
+ sgml-local-ecat-files:nil
1590
+ End:
1591
+ -->
0 commit comments