Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
J.3. Building The Documentation
Prev UpAppendix J. DocumentationHome Next

J.3. Building The Documentation

Once you have everything set up, change to the directorydoc/src/sgml and run one of the commands described in the following subsections to build the documentation. (Remember to use GNU make.)

If you want to useJadeTex to produce a printable rendition of the documentation, you can use one of the following commands:

When using JadeTeX to build the PostgreSQL documentation, you will probably need to increase some of TeX's internal parameters. These can be set in the filetexmf.cnf. The following settings worked at the time of this writing:

hash_extra.jadetex  = 200000hash_extra.pdfjadetex  = 200000pool_size.jadetex = 2000000pool_size.pdfjadetex = 2000000string_vacancies.jadetex = 150000string_vacancies.pdfjadetex = 150000max_strings.jadetex = 300000max_strings.pdfjadetex = 300000save_size.jadetex = 15000save_size.pdfjadetex = 15000

You can also create a printable version of thePostgreSQL documentation by converting it toRTF and applying minor formatting corrections using an office suite. Depending on the capabilities of the particular office suite, you can then convert the documentation to PostScript ofPDF. The procedure below illustrates this process usingApplixware.

ApplixwareRTF Cleanup

OpenJade omits specifying a default style for body text. In the past, this undiagnosed problem led to a long process of table of contents generation. However, with great help from theApplixware folks the symptom was diagnosed and a workaround is available.

  1. Generate theRTF version by typing:

    doc/src/sgml$make postgres.rtf

  2. Repair the RTF file to correctly specify all styles, in particular the default style. If the document containsrefentry sections, one must also replace formatting hints which tie a preceding paragraph to the current paragraph, and instead tie the current paragraph to the following one. A utility,fixrtf, is available indoc/src/sgml to accomplish these repairs:

    doc/src/sgml$./fixrtf --refentry postgres.rtf

    The script adds{\s0 Normal;} as the zeroth style in the document. According toApplixware, the RTF standard would prohibit adding an implicit zeroth style, though Microsoft Word happens to handle this case. For repairingrefentry sections, the script replaces\keepn tags with\keep.

  3. Open a new document inApplixware Words and then import theRTF file.

  4. Generate a new table of contents (ToC) usingApplixware.

    1. Select the existing ToC lines, from the beginning of the first character on the first line to the last character of the last line.

    2. Build a new ToC usingToolsBook BuildingCreate Table of Contents. Select the first three levels of headers for inclusion in the ToC. This will replace the existing lines imported in the RTF with a nativeApplixware ToC.

    3. Adjust the ToC formatting by usingFormatStyle, selecting each of the three ToC styles, and adjusting the indents forFirst andLeft. Use the following values:

      StyleFirst Indent (inches)Left Indent (inches)
      TOC-Heading 10.40.4
      TOC-Heading 20.80.8
      TOC-Heading 31.21.2

  5. Work through the document to:

  6. Replace the right-justified page numbers in the Examples and Figures portions of the ToC with correct values. This only takes a few minutes.

  7. Delete the index section from the document if it is empty.

  8. Regenerate and adjust the table of contents.

    1. Select the ToC field.

    2. SelectToolsBook BuildingCreate Table of Contents.

    3. Unbind the ToC by selectingToolsField EditingUnprotect.

    4. Delete the first line in the ToC, which is an entry for the ToC itself.

  9. Save the document as nativeApplixware Words format to allow easier last minute editing later.

  10. Print the document to a file in PostScript format.

The installation instructions are also distributed as plain text, in case they are needed in a situation where better reading tools are not available. TheINSTALL file corresponds toChapter 15, with some minor changes to account for the different context. To recreate the file, change to the directorydoc/src/sgml and entermake INSTALL.

In the past, the release notes and regression testing instructions were also distributed as plain text, but this practice has been discontinued.

J.3.7. Syntax Check

Building the documentation can take very long. But there is a method to just check the correct syntax of the documentation files, which only takes a few seconds:

doc/src/sgml$make check


Prev Up Next
J.2. Tool Sets Home J.4. Documentation Authoring
epubpdf
Go to PostgreSQL 9.5
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp