文档指南

.. _reStructuredText:
.. _sphinx: http://sphinx.pocoo.org

Sphinx

For more details see The Sphinx Documentation <http://sphinx.pocoo.org/contents.html>_

reStructuredText

For more details see The reST Quickref <http://docutils.sourceforge.net/docs/user/rst/quickref.html>_

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

  • = for sections
  • - for subsections
  • ^ for subsubsections
  • ~ for subsubsubsections

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-name```. These are
unique references across the entire documentation.

For example::

.. _akka-module:

#

Akka Module

#

This is the module documentation.

Akka Section

Here is a reference to “akka section”: :ref: which will have the
name “Akka Section”.

Build the documentation

First install Sphinx_. See below.

For the html version of the docs::

For the pdf version of the docs::

  1. sbt sphinx:generate-pdf
  2. open <project-dir>/akka-docs/target/sphinx/latex/AkkaJava.pdf
  3. or
  4. open <project-dir>/akka-docs/target/sphinx/latex/AkkaScala.pdf

Install Homebrew <https://github.com/mxcl/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:

::

Install sphinx:

::

    Add sphinx_build to your $PATH:

    ::

    Install BasicTeX package from:

    Add texlive bin to $PATH:

    ::

    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
    8. sudo tlmgr install multirow

    ::

    1. export LANG=en_US.UTF-8
    2. export LC_ALL=en_US.UTF-8