Chapter 3. Creating Output from doc/o/

Table of Contents

3.1. Output file subdirectories
3.2. A typical output subdirectory
3.3. The main.sgml file
3.4. Validating the SGML source
3.5. Generating output
3.6. Checking the output
3.7. Generating all distributed books

The beauty of single-sourcing with SGML is that we can create different kinds of output from one source. The challenge is to organize the input and output files to meet our needs. We have done this by creating a separate directory for all output files, the doc/o/ directory, and then having one subdirectory for each book we produce. At present, we create one big book set (called Cogent Documentation) in HTML and QNX Helpviewer formats, and individual books in PDF format.

3.1. Output file subdirectories

Here is how the doc/o/ subdirectories are organized.

[Note]

The "Set" distribution format means that book is included in the HTML online Cogent Documentation book set. "Q4" means the book is included in the QNX 4 Helpviewer version of the Cogent Documentation book set, and "Q6" means the same for QNX 6. "W" stands for Windows HTML Help format.

File nameBook nameDistribution formats
api-book/Cogent APISet, PDF, Q4, Q6
cc-book/Cascade ConnectSet, PDF, Q4, Q6, W
cs-book/Cascade Connect Client/Serve Protocolnone
cogent-set/Cogent DocumentationHMTL, Q4, Q6
dh-book/Cascade DataHubSet, PDF, Q4, Q6
drcf-book/Cogent Driver for Hilscher Fieldbus CIF CardsSet, PDF, Q4, Q6
drdn-book/Cogent Driver for SST 5136-DNP (DeviceNet) CardsSet, PDF, Q4, Q6
drgn-book/Cogent Driver (generic content)none
drsd-book/Cogent Driver for SST 5136-SD (Data Highway Plus) CardsSet, PDF, Q4
drmb-book/Cogent Driver for Modicon SA85 and PC85 (Modbus Plus) CardsSet, PDF, Q4
gamma-book/Gamma (complete)Set, Q4, Q6
gamguide-book/Gamma Programmers ManualPDF
gamref1-book/Gamma Reference Vol. 1PDF
gamref2-book/Gamma Reference Vol. 2PDF
gl-book/Glossary and FAQSet, PDF, Q4, Q6
gtkgamma-book/Gamma/GTKSet, Q6
sqlgamma-book/Gamma/MySQLSet, PDF, Q4, Q6
hi-book/Cascade HistorianSet, PDF, Q4, Q6
p1-art/Cadbury Chocolate Project ReviewPDF
p2-art/Connecting QNX and MS-WindowsPDF
p3-art/Hot Standby for InTouchPDF
p4-art/Gamma Discussion - Interpreted LanguagesPDF
p5-art/Synchronous & Asynchronous MessagesPDF
p6-art/Shared Memory vs. Real-Time DatabasePDF
p7-art/Cascade DataHub and Cascade Connect BenchmarksPDF
phgamma-book/Gamma/Photon (complete)Set, Q4, Q6
phgamguide-book/Gamma/Photon Programmers ManualPDF
phgamref1-book/Gamma/Photon Reference Vol. 1PDF
phgamref2-book/Gamma/Photon Reference Vol. 2PDF
prepdoc-book/Preparing Cogent Documentation (This book)HTML
sr-book/SRR ModuleSet, PDF
testfile/(A set of test books)none
testfile2/(A test book)none
testfile3/(A book that illustrates SGML elements and tags)none
tl-book/Cascade TextLoggerSet, PDF, Q4, Q6
tu-book/Linux and QNX Tools Demo and TutorialsSet, PDF, Q4, Q6
wp-book/Cogent White Papers (all above articles)Set, Q4, Q6