How to Work with the Pig Documentation

Forrest Set Up

Pig's official documentation is authored using Forrest. To commit documentation changes you must have Forrest installed and the forrest executable on your $PATH. Note that the current version of Forrest (0.8) does not work properly with Java 6, use Java 5 instead (make sure JAVA_HOME points to Java 5).

Documentation is of two types:

1. The website documentation (maintained separately in subversion, in the site branch)

2. The user documentation, versioned with releases (maintained separately in subversion, in the trunk )

Forrest Files

Forrest includes these files that you can modify for the Pig website docs or Pig user docs:

Note: Some *.xml files in the Pig user docs require the Forrest simplified Docbook plugin. In the forrest.properties file, the plugin entry has been updated to include the Docbook plugin: project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.input.simplifiedDocbook

Updating the Pig Website Documentation

Checkout the site branch: https://svn.apache.org/repos/asf/hadoop/pig/site/

To edit website doc files:

To view your edits using forrest:

To create a local doc build:

Updating the Pig User Documentation

Checkout the trunk or relevant branch: http://svn.apache.org/repos/asf/hadoop/pig/trunk

To edit the user doc files:

To view your edits using forrest:

To create a local doc build:

To build the user docs using ant:

HowToDocumentation (last edited 2009-09-20 23:38:17 by localhost)