diff --git a/doc/source/conf.py b/doc/source/conf.py index 6906388ea..f702e79b9 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -50,6 +50,9 @@ add_module_names = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' +# A list of ignored prefixes for module index sorting. +modindex_common_prefix = ['tacker.'] + # -- Options for HTML output -------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with diff --git a/doc/source/index.rst b/doc/source/index.rst index 321a257e1..a3befbd25 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -103,3 +103,4 @@ Indices and tables ------------------ * :ref:`search` +* :ref:`modindex` diff --git a/setup.cfg b/setup.cfg index 9005b2ba0..5d0396070 100644 --- a/setup.cfg +++ b/setup.cfg @@ -103,3 +103,11 @@ input_file = tacker/locale/tacker.pot [wheel] universal = 1 + +[pbr] +autodoc_index_modules = True +warnerrors = True +autodoc_exclude_modules = + tacker.db.migration.alembic_migrations.* + tacker.tests.* + thirdparty.*