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

Commit dee302e

Browse files
author
Thomas G. Lockhart
committed
Include more details on editing with Emacs.
Remove mention of the old "migration" flat files. Change URLs for resources to point to areas, not particular files. That way things stay correct even when version of tools change. Suggested by Vince Vielhaber.
1 parent bb6286a commit dee302e

File tree

1 file changed

+152
-85
lines changed

1 file changed

+152
-85
lines changed

doc/src/sgml/docguide.sgml

Lines changed: 152 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
<!--
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 $
33
Documentation Guide
44
Thomas Lockhart
55

66
$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+
714
Revision 1.11 1998/10/30 19:36:57 thomas
815
Minor editing and markup changes as a result of preparing the Postscript
916
documentation for v6.4.
@@ -114,6 +121,57 @@ There are man pages available for installation, as well as a large number
114121
of plain-text README-type files throughout the <productname>Postgres</productname>
115122
source tree.
116123

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+
117175
<sect1>
118176
<title>Documentation Sources</title>
119177

@@ -251,6 +309,7 @@ The Administrator's Guide. Include installation and release notes.
251309
Disable for the hardcopy production release.
252310
Too much tabular info and not very helpful in hardcopy.
253311
- thomas 1998-10-27
312+
-->
254313

255314
<sect2>
256315
<title>Documentation Files</title>
@@ -481,15 +540,6 @@ Status
481540
<row><entry> ./doc/README.support </entry><entry> Not converted </entry></row>
482541
<row><entry> ./doc/TODO.GEQO </entry><entry> Removed. Superceded by geqo.sgml </entry></row>
483542
<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>
493543
<row><entry> ./src/DEVELOPERS </entry><entry> Not converted </entry></row>
494544
<row><entry> ./src/backend/access/nbtree/README </entry><entry> Not converted </entry></row>
495545
<row><entry> ./src/backend/catalog/README </entry><entry> Not converted </entry></row>
@@ -670,64 +720,6 @@ Status
670720
</tgroup>
671721
</table>
672722

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>
731723

732724
<sect2>
733725
<title>Styles and Conventions</title>
@@ -776,12 +768,12 @@ be included below.
776768
-->
777769

778770
<sect2>
779-
<title>Authoring Tools</title>
771+
<title>SGML Authoring Tools</title>
780772

781773
<para>
782-
The current <acronym>Postgres</acronym> documentation set is written using
774+
The current <acronym>Postgres</acronym> documentation set was written using
783775
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.
785777

786778
<para>
787779
<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
793785
<title>emacs/psgml</title>
794786

795787
<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
797845
these separate files of book parts is to insert a proper DOCTYPE
798846
declaration while you're editing them. If you are working on this source, for instance,
799847
it's an appendix chapter, so you would specify the document as an "appendix" instance of
@@ -1041,9 +1089,10 @@ and <acronym>RTF</acronym>.
10411089

10421090
<para>
10431091
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.
10471096

10481097
<sect3><title>Prerequisites</title>
10491098

@@ -1061,21 +1110,23 @@ a good candidate for use.
10611110

10621111
<itemizedlist>
10631112
<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)
10661116
</para></listitem>
10671117
<listitem>
10681118
<para><ulink url="http://www.ora.com/davenport/docbook/current/docbk30.zip">
10691119
<productname>DocBook</productname> version 3.0</ulink>
10701120
</para></listitem>
10711121
<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)
10751125
</para></listitem>
10761126
<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)
10791130
</para></listitem>
10801131
</itemizedlist>
10811132

@@ -1266,14 +1317,14 @@ kit in a suitable place. A good place to dot this would be
12661317
directory tree under <filename>/usr/local/share/docbook</filename>.
12671318
The command will be something like
12681319
<programlisting>
1269-
unzip -aU db107.zip
1320+
unzip -aU db119.zip
12701321
</programlisting>
12711322
</para>
12721323

12731324
<step performance="required">
12741325
<para>One way to test the installation is to build the
12751326
<acronym>HTML</acronym> and <acronym>RTF</acronym> forms of the
1276-
<productname>PostgreSQL</productname> manual.
1327+
<citetitle><productname>PostgreSQL</productname> User's Guide</citetitle>.
12771328

12781329
<substeps>
12791330

@@ -1316,7 +1367,7 @@ URL.</para>
13161367
<para>Unpack the distribution file, run configure, make and make
13171368
install to put the byte-compiled files and info library in place.
13181369

1319-
<step performance="required">
1370+
<step performance="required" id="psgml-setup">
13201371
<para>
13211372
Then add the following lines to your
13221373
<filename>/usr/local/share/emacs/site-lisp/site-start.el</filename>
@@ -1522,3 +1573,19 @@ Run <productname>texhash</productname> to update the tex database.
15221573

15231574
</appendix>
15241575

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

Comments
 (0)