Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brian Gerkey
committed
May 29, 2012
1 parent
686a6e8
commit b320b22
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
How to build the docs | ||
===================== | ||
|
||
catkin provides (and uses) some plugins to `Sphinx | ||
<http://sphinx.pocoo.org/>`_ to build documentation. These plugins can | ||
be used to provide a common look and feel to the generated documentation. | ||
|
||
The first time you want to build catkin-controlled documentation (including | ||
catkin's own documentation), you'll need to setup your environment. | ||
|
||
Setup | ||
----- | ||
|
||
#. Get ``catkin-sphinx``:: | ||
|
||
git clone git://github.com/ros/catkin-sphinx.git | ||
|
||
#. Build and install it:: | ||
|
||
cd catkin-sphinx | ||
sudo python setup.py install | ||
|
||
#. Copy ``ros-theme`` to your Sphinx configuration directory:: | ||
|
||
cp -a theme/ros-theme ~/sphinx | ||
|
||
Now you can build documentation for projects that use the ``ros-theme``. For | ||
example, to build catkin's documentation:: | ||
git clone git://github.com/ros/catkin.git | ||
cd catkin/doc | ||
make html | ||
|
||
Usage | ||
----- | ||
|
||
To use the ``ros-theme`` in your own project's documentation, add the | ||
following line to your ``conf.py``:: | ||
|
||
extensions = extensions + ['catkin_sphinx.cmake', 'catkin_sphinx.ShLexer'] | ||
|
||
ros-theme-enabled projects use the following ``html_theme_path`` setting:: | ||
|
||
html_theme_path = [os.path.join(os.path.expanduser('~'), 'sphinx'), 'themes'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ Contents | |
:maxdepth: 1 | ||
|
||
walkthrough | ||
builddocs | ||
supposed | ||
layout | ||
macros | ||
|