2012-03-14 18:58:27 +00:00
|
|
|
Building Ceph Documentation
|
2012-03-13 23:22:26 +00:00
|
|
|
===========================
|
|
|
|
|
2012-03-14 18:58:27 +00:00
|
|
|
Ceph utilizes Python's Sphinx documentation tool. For details on
|
|
|
|
the Sphinx documentation tool, refer to `The Sphinx Documentation Tool <http://sphinx.pocoo.org/>`_.
|
2012-03-13 23:22:26 +00:00
|
|
|
|
|
|
|
To build the Ceph documentation set, you must:
|
|
|
|
|
|
|
|
1. Clone the Ceph repository
|
|
|
|
2. Install the required tools
|
2012-03-14 18:58:27 +00:00
|
|
|
3. Build the documents
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-03-14 18:58:27 +00:00
|
|
|
Clone the Ceph Repository
|
2012-03-13 23:22:26 +00:00
|
|
|
-------------------------
|
|
|
|
|
2012-03-14 18:58:27 +00:00
|
|
|
To clone the Ceph repository, you must have ``git`` installed
|
2012-10-19 17:40:25 +00:00
|
|
|
on your local host. To install ``git``, execute::
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-10-19 17:40:25 +00:00
|
|
|
sudo apt-get install git
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-10-19 17:40:25 +00:00
|
|
|
To clone the Ceph repository, execute::
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2013-09-03 22:56:53 +00:00
|
|
|
git clone git://github.com/ceph/ceph
|
2012-05-03 17:15:21 +00:00
|
|
|
|
2012-03-13 23:22:26 +00:00
|
|
|
You should have a full copy of the Ceph repository.
|
|
|
|
|
|
|
|
|
2012-03-14 18:58:27 +00:00
|
|
|
Install the Required Tools
|
2012-05-03 17:15:21 +00:00
|
|
|
--------------------------
|
2012-10-19 17:40:25 +00:00
|
|
|
|
|
|
|
If you do not have Sphinx and its dependencies installed, a list of
|
|
|
|
dependencies will appear in the output. Install the dependencies on
|
|
|
|
your system, and then execute the build.
|
2012-05-03 17:15:21 +00:00
|
|
|
|
|
|
|
To run Sphinx, at least the following are required:
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-03-14 18:58:27 +00:00
|
|
|
- ``python-dev``
|
|
|
|
- ``python-pip``
|
|
|
|
- ``python-virtualenv``
|
|
|
|
- ``libxml2-dev``
|
|
|
|
- ``libxslt-dev``
|
|
|
|
- ``doxygen``
|
|
|
|
- ``ditaa``
|
|
|
|
- ``graphviz``
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-10-19 17:40:25 +00:00
|
|
|
Execute ``apt-get install`` for each dependency that isn't installed
|
|
|
|
on your host.::
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2013-08-09 08:17:26 +00:00
|
|
|
sudo apt-get install python-dev python-pip python-virtualenv libxml2-dev libxslt-dev doxygen ditaa graphviz ant
|
2012-05-03 17:15:21 +00:00
|
|
|
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-03-14 18:58:27 +00:00
|
|
|
|
|
|
|
Build the Documents
|
|
|
|
-------------------
|
|
|
|
|
2012-10-19 17:40:25 +00:00
|
|
|
Once you have installed all the dependencies, execute the build::
|
2012-03-14 18:58:27 +00:00
|
|
|
|
2012-10-19 17:40:25 +00:00
|
|
|
cd ceph
|
|
|
|
admin/build-doc
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-10-19 17:40:25 +00:00
|
|
|
Once you build the documentation set, you may navigate to the source directory to view it::
|
2012-03-13 23:22:26 +00:00
|
|
|
|
2012-10-19 17:40:25 +00:00
|
|
|
cd build-doc/output
|
2012-05-03 17:15:21 +00:00
|
|
|
|
2012-03-14 18:58:27 +00:00
|
|
|
There should be an ``html`` directory and a ``man`` directory containing documentation
|
2012-05-03 17:15:21 +00:00
|
|
|
in HTML and manpage formats respectively.
|