- Introduction
- 1. 引言
- 2. 概述
- 3. Actors
- 4. Futures与Agents
- 5. 网络
- 6. 实用工具
- 7. 如何使用:常用模式
- 8. 实验模块
- 9. Akka开发者信息
- 10. 工程信息
- 11. 附加信息
- Published using GitBook
AKKA 2.3.6 Scala 文档
文档指南
The Akka documentation uses reStructuredText as its markup language and is built using Sphinx.
.. _reStructuredText: http://docutils.sourceforge.net/rst.html .. _sphinx: http://sphinx.pocoo.org
Sphinx
For more details see The Sphinx Documentation _
reStructuredText
For more details see The reST Quickref _
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::
.. _akka-module:
#
Akka Module
#
This is the module documentation.
.. _akka-section:
Akka Section
Akka Subsection
Here is a reference to "akka section": :ref:akka-section which will have the name "Akka Section".
Build the documentation
First install Sphinx_. See below.
Building
For the html version of the docs::
sbt sphinx:generate-htmlopen <project-dir>/akka-docs/target/sphinx/html/index.html
For the pdf version of the docs::
sbt sphinx:generate-pdfopen <project-dir>/akka-docs/target/sphinx/latex/AkkaJava.pdforopen <project-dir>/akka-docs/target/sphinx/latex/AkkaScala.pdf
Installing Sphinx on OS X
Install Homebrew _
Install Python and pip:
::
brew install python/usr/local/share/python/easy_install pip
Add the Homebrew Python path to your $PATH:
::
/usr/local/Cellar/python/2.7.5/bin
More information in case of trouble: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
Install sphinx:
::
pip install sphinx
Add sphinx_build to your $PATH:
::
/usr/local/share/python
Install BasicTeX package from: http://www.tug.org/mactex/morepackages.html
Add texlive bin to $PATH:
::
/usr/local/texlive/2013basic/bin/universal-darwin
Add missing tex packages:
::
sudo tlmgr update --selfsudo tlmgr install titlesecsudo tlmgr install framedsudo tlmgr install threeparttablesudo tlmgr install wrapfigsudo tlmgr install helveticsudo tlmgr install couriersudo tlmgr install multirow
If you get the error "unknown locale: UTF-8" when generating the documentation the solution is to define the following environment variables:
::
export LANG=en_US.UTF-8export LC_ALL=en_US.UTF-8
