Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

DCS and REST

...

Building an Individual Document

  1. Be sure to source env.sh, so that the TRAFODION_VER environment variable is defined.
  2. Build the document using mvn clean site

...

  1.  in the directory containing the document; for example: dcs

...

  1.  or docs/odb_user.
    1. If you have not previously built the JDBC drivers, the DCS and REST documents will give spurious errors about missing that dependency. The documents can be built fine, skipping over that dependency using mvn -P'!jdbc' site.
  2. Verify the content in the generated target directory. 

    1. The target/index.html file provides the entry point for the web book

...

    1. .

    2. For those that have API documentation, the target/apidocs/index.html file

...

    1. is the entry point

...

    1. .

    2. For those that have PDF, the target/index.pdf file contains the PDF version of the document.

Building the Entire Website, including Documents

  1. Be sure to source env.sh, so that the TRAFODION_VER environment variable is defined.
  2. Build everything using mvn clean post-site in the top-level directory.
    1. As above, to skip over JDBC dependency, use mvn -P'!jdbc' post-site.
  3. Verify the contents in the generated docs/target directory.
    1. All documents are in docs/target/docs directory.

Other Documentation

  1. Build the document using mvn clean site against the directory containing the document; for example:docs/client_install or docs/odb_user.
  2. Verify the content in the generated target directory. The target/index.pdf file contains the PDF version of the document while target/site/index.html contains the web-book version of the document.

...

Anchor
modifying-documentation-build-trafodion-docmument-tree
modifying-documentation-build-trafodion-docmument-tree

...

The external version of the Trafodion Document Tree is published to http://trafodion.incubator.apache.org/docs. Please refer to Publish below.

...

The build version of the Trafodion Document Tree is located in docs/target/docs, which is created when you build the Trafodion web site in Maven.

...

The Document Directories are copied under the Version Directories thereby creating the web-accessible Trafodion document tree.

Populate Trafodion Document Tree

The build version of the Trafodion Document Tree is populated as follows:

...

...

Run maven post-site build step.

...

Run maven post-site build step.

...

  • Create Version Directories, if needed.
  • Create Document Directories, if needed.
  • Copy $SQ_HOME/dcs/target/site/ to the appropriate Document Directories.

...

Run maven post-site build step.

...

Run maven post-site build step.

...

  • Create Version Directories, if needed.
  • Create Document Directories, if needed.
  • Copy $SQ_HOME/core/rest/target/site/ to the appropriate Document Directories.

...

Run maven post-site build step.


Anchor
modify-documentation-publish
modify-documentation-publish

...

Info

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.

 

Do the following:

  1. Build the web site.
  2. Build the different document as described in Making Changes above.
  3. Build the Trafodion Document Tree as described in Build Trafodion Document Tree above.

 

The resulting docs/target/docs/ directory is checked into the web-site SVN branchRefer to Website Publishing for how the website and documents get published.