Documentation Guidelines

Documentation Guidelines

The Akka documentation uses reStructuredText as its markup language and is built using Sphinx.

Sphinx

More to come...

reStructuredText

More to come...

Sections

Section headings are very flexible in reST. We use the following convention in the Akka documentation:

  • # (over and under) for module headings
  • = for sections
  • - for subsections
  • ^ for subsubsections
  • ~ for subsubsubsections

Cross-referencing

Sections that may be cross-referenced across the documentation should be marked with a reference. To mark a section use .. _ref-name: before the section heading. The section can then be linked with :ref:`ref-name`. These are unique references across the entire documentation.

For example:

  1. .. _akka-module:
  2.  
  3. #############
  4. Akka Module
  5. #############
  6.  
  7. This is the module documentation.
  8.  
  9. .. _akka-section:
  10.  
  11. Akka Section
  12. ============
  13.  
  14. Akka Subsection
  15. ---------------
  16.  
  17. Here is a reference to "akka section": :ref:`akka-section` which will have the
  18. name "Akka Section".

Build the documentation

First install Sphinx. See below.

Building

  1. cd akka-docs
  2.  
  3. make html
  4. open _build/html/index.html
  5.  
  6. make pdf
  7. open _build/latex/Akka.pdf

Installing Sphinx on OS X

Install Homebrew

Install Python and pip:

  1. brew install python
  2. /usr/local/share/python/easy_install pip

Add the Homebrew Python path to your $PATH:

  1. /usr/local/Cellar/python/2.7.1/bin

More information in case of trouble: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python

Install sphinx:

  1. pip install sphinx

Add sphinx_build to your $PATH:

  1. /usr/local/share/python

Install BasicTeX package from: http://www.tug.org/mactex/morepackages.html

Add texlive bin to $PATH:

  1. /usr/local/texlive/2010basic/bin/universal-darwin

Add missing tex packages:

  1. sudo tlmgr update --self
  2. sudo tlmgr install titlesec
  3. sudo tlmgr install framed
  4. sudo tlmgr install threeparttable
  5. sudo tlmgr install wrapfig
  6. sudo tlmgr install helvetic
  7. sudo tlmgr install courier

Link the akka pygments style:

  1. cd /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/pygments/styles
  2. ln -s /path/to/akka/akka-docs/themes/akka/pygments/akka.py akka.py