First save the two source and build directory trees. Put source under version control. Do not put build under version control, rebuild it as part of the installation.
Secondly, read http://sphinx.pocoo.org/intro.html#setting-up-the-documentation-sources .
Use sphinx-quickstart to create a practice documentation tree. Play with this for a few days to find out how it works. Then use it again to create the real thing in SVN directories.
Organize your documentation in a well-planned tree. Some sections need "index.rst" for this section, some do not. It depends on how the partition is "offline."
Our top level index.rst as follows.
.. XXX documentation master file, created by sphinx-quickstart on Wed Dec 31 07:27:45 2008. .. include:: overview.inc .. _`requirements`: Requirements ============ .. toctree:: :maxdepth: 1 requirements/requirements requirements/admin requirements/forward requirements/volume .. _`architecture`: Architecture ============ .. toctree:: :maxdepth: 1 architecture/architecture architecture/techstack architecture/webservice_tech architecture/webservice_arch architecture/common_features architecture/linux_host_architecture Detailed Designs ================ .. toctree:: :maxdepth: 3 design/index Installation and Operations =========================== .. toctree:: :maxdepth: 1 deployment/installation deployment/operations deployment/support deployment/load_test_results deployment/reference deployment/licensing Programming and API's ===================== .. toctree:: :maxdepth: 2 programming/index **API Reference**. The `API Reference`_ is generated from the source. .. _`API Reference`: ../../../apidoc/xxx/index.html .. note:: The API reference must be built with `Epydoc`_. .. _`Epydoc`: http://epydoc.sourceforge.net/ Management ========== .. toctree:: :maxdepth: 2 :glob: management/* Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` SVN Revision ============ :: $Revision: 319 $
Please note: we do not include the API, we just reference it with a regular HTML link.
Sphinx has a very cool add-on called the auto-module, which selects docstrings from Python modules.
Update . With Sphinx 1.0, C and C ++ are supported. http://sphinx.pocoo.org/
S.Lott May 7, '09 at 15:01 2009-05-07 15:01
source share