Use the autodoc Sphinx extension

Add Python API and test indices to rendered documentation. This is
rudimentary for now, but will get better as useful docstrings are
added to the Python source.

Change-Id: I723ee931e3c219ce08c3d24f79e862e8b304733e
This commit is contained in:
Jeremy Stanley 2016-11-11 19:24:49 +00:00
parent cf9f7f239a
commit 24451d1689
3 changed files with 35 additions and 0 deletions

View File

@ -22,6 +22,7 @@ sys.path.insert(0, os.path.abspath('../..'))
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
'sphinxcontrib.programoutput',
'oslosphinx'
]

View File

@ -2,3 +2,36 @@
Contributing
============
.. include:: ../../CONTRIBUTING.rst
Python API
----------
No internal API stability guarantees are made, but for reference
here is a basic outline of the source implementation:
.. automodule:: bindep
:members:
.. automodule:: bindep.depends
:members:
.. automodule:: bindep.main
:members:
Internal Unit Tests
-------------------
The bindep utility is developed following a test-driven methodology.
These are the current tests run to ensure its internal consistency
for every commit:
.. automodule:: bindep.tests
:members:
.. automodule:: bindep.tests.test_depends
:members:
.. automodule:: bindep.tests.test_main
:members:

View File

@ -19,4 +19,5 @@ Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`