Add module index for tacker docs

The module index for tacker docs is dropped due to new
PTI for building docs. However, sphinxcontrib.apidoc
now support to build autodoc which replace pbr autodoc.
We can have it again.

Closes-Bug: #1761923
Change-Id: Ie4c98dd6e8b365778cb0d2c377a9600d79cb43d1
This commit is contained in:
Nguyen Hai 2018-04-07 13:50:14 +09:00
parent 797ce5c6ba
commit 009c9a59e6
7 changed files with 29 additions and 9 deletions

4
.gitignore vendored
View File

@ -26,7 +26,9 @@ subunit.log
*.sw? *.sw?
*~ *~
.eggs/ .eggs/
.stestr/
SP1_res.yaml
releasenotes/build releasenotes/build
etc/tacker/tacker.conf.sample etc/tacker/tacker.conf.sample
doc/source/api doc/source/contributor/api

View File

@ -2,6 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
sphinxcontrib-apidoc>=0.2.0 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0 openstackdocstheme>=1.18.1 # Apache-2.0
os-api-ref>=1.4.0 # Apache-2.0 os-api-ref>=1.4.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0

View File

@ -20,15 +20,25 @@ sys.path.insert(0, os.path.abspath('../..'))
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [ extensions = [
'sphinx.ext.autodoc', 'sphinxcontrib.apidoc',
#'sphinx.ext.intersphinx',
'stevedore.sphinxext', 'stevedore.sphinxext',
'openstackdocstheme', 'openstackdocstheme',
] ]
# autodoc generation is a bit aggressive and a nuisance when doing heavy # sphinxcontrib.apidoc options
# text edit cycles. apidoc_module_dir = '../../tacker'
# execute "export SPHINX_DEBUG=1" in your terminal to disable apidoc_output_dir = 'contributor/api'
apidoc_excluded_paths = [
'tests/*',
'tests',
'nfvo/workflows/*',
'nfvo/workflows',
'vnfm/workflows/*',
'vnfm/workflows',
'db/migration/alembic_migrations/*',
'db/migration/alembic_migrations',
'hacking']
apidoc_separate_modules = True
# The suffix of source filenames. # The suffix of source filenames.
source_suffix = '.rst' source_suffix = '.rst'

View File

@ -26,11 +26,17 @@ Developer Info
dev-process.rst dev-process.rst
development.environment.rst development.environment.rst
api/api_layer.rst api_layer.rst
api/api_extensions.rst api_extensions.rst
tacker_functional_test.rst tacker_functional_test.rst
dashboards.rst dashboards.rst
Code Documentation
------------------
:ref:`modindex`
API Documentation API Documentation
----------------- -----------------

View File

@ -60,5 +60,6 @@ Project Info
Indices and tables Indices and tables
------------------ ------------------
* :ref:`search` * :ref:`genindex`
* :ref:`modindex` * :ref:`modindex`
* :ref:`search`