This page describes how to modify the Trafodion documentation. Please refer to the Contribute page for information about other ways to contribute to the Trafodion project.

Documents do not include version information as part of the file name.

Source

Document Source Format Source Tree Output Format
Client Installation Guide word External (Word) PDF
Command Interface Guide word External (Word) PDF
DCS Reference Guide asciidoc dcs/src/main/asciidoc Web Book, PDF
DCS APIs javadoc dcs/src/main/java Web Book
odb User Guide word External (Word) PDF
REST Reference Guide asciidoc core/rest/src/main/asciidoc Web Book, PDF
REST APIs javadoc core/rest/src/main/java Web Book
SQL Reference Manual word External (Word) PDF

Web

docs/target/docs contains the latest version of the document. This practice makes it possible to link to a document in instructional text.

In addition, the documentation is copied to the docs/target/docs directory on a per-release basis. This directory is referred to as the release document directory below.

Example

Release Document Directory Content Web Site Directory
docs/target/1.3.0 Documentation related to the 1.3.0 release. incubator.trafodion.apache.org/docs/1.3.0
docs/target/1.5.0 Documentation related to the 1.5.0 release. incubator.trafodion.apache.org/docs/1.5.0

The release document directory contains a sub-directory per document. The naming convention for these directories is the document name in all lower case without the manual/guide qualifier and with words separated by underscore. Web-based API definitions generated by javadoc are located under each sub-directory, if applicable.

Example

Document Sub Directory Name
Client Installation Guide client_installation
Command Interface Guide command_interface
DCS Reference Guide dcs_reference
odb User Guide odb_user
REST Reference Guide rest_reference
SQL Reference Manual sql_reference

The sub-directory is organized as follows. More files may be present in the sub-directory depending on document.

File/Directory Content
*.pdf The PDF version of the document. For example, Trafodion_SQL_Reference_Guide.pdf.
index.html Entry point for the web book. Generated by asciidoc.
_chapters Web book chapters; that is, the actual content.
apidocs API documentation provided as web. Generated by javadoc.
apidocs/index.html Entry point for API documentation.
css CSS definitions used by the web-version of the document.
images Images used by the web-version of the document.

Making Changes

Word Documents

Do the following:

  1. Edit the document.
  2. Save a PDF version.
  3. Build the web site using mvn clean site against the docs directory.
  4. Create the Release Document Directory, if needed.
  5. Copy the PDF files to the Release Document Directory.
  6. Copy and overwrite the PDF to the docs/target/docs directory — latest version of the document.

Asciidoc Documents

Please refer to DCS Contributing to Documentation guidance for information about working on asciidoc-based documentation.

Once you’ve made the desired changes, then do the following:

  1. Build the document using mvn clean site against the directory containing the document; for example: dcs or ```core/rest’’’.
  2. Verify the content in the generated target directory. The target/index.html file provides the entry point for the web book; the target/apidocs/index.html file contains the entry point for API documentation.

You will need to move the files to the final Release Document Directory; refer to Publishing below.

Publishing

Publication is done when a committer is ready to update the external web site. You do not perform these steps as part of checking in changes.

Prerequisite: You need to build the web site before using these instructions. Please refer to Modifying Web Site.

You will need to copy/move the documentation from its generated location to the Release Document Directory.

  1. Create the Release Document Directory under docs/target/docs if it doesn’t already exist.
  2. Copy the generated document files as follows:
Document Populate Release Document Directory
Client Installation Guide Copy the .pdf file to docs/target/docs and Release Document Directory.
Command Interface Guide Copy the .pdf file to docs/target/docs and Release Document Directory.
DCS Reference Guide Copy dcs/target/site/ to the Release Document Directory.
odb User Guide Copy the .pdf file to docs/target/docs and Release Document Directory.
REST Reference Guide Copy core/rest/target/site/ to the Release Document Directory.
SQL Reference Manual Copy the .pdf file to docs/target/docs and Release Document Directory.

Example — Publishing the DCS Reference Guide

cd $SQ_HOME/docs/target/docs
mkdir 1.3.0
cd 1.3.0
mkdir dcs_reference
cp -r $SQ_HOME/dcs/target/site/ .

Once the update of the Release Document Directory is complete, then you can complete the web-site publication.

Back to top


Disclaimer: Apache Trafodion is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Apache, Apache Maven, Apache Maven Fluido Skin, the Apache feather logo, the Apache Maven project logo and the Apache Incubator project logo are trademarks of The Apache Software Foundation.