Fix the module index link in the docs

Since we weren't autodoc'ing the modules during the docs build, the
module index link was broken.

This generates the module docs (but hides them from the main top-level
table of contents) so they can be accessed via the 'Module Index' link.

Also cleans up some docs issues so that warnerrors=True works during
sphinx-build.

Closes-Bug: #1472642

Change-Id: I5a3a16d1e81b12237452d5a3a3f7f0cc42618e88
This commit is contained in:
Matt Riedemann 2015-07-08 07:54:23 -07:00
parent a2e79fdb6d
commit 9f44f79a2d
5 changed files with 23 additions and 3 deletions

1
.gitignore vendored
View File

@ -43,6 +43,7 @@ output/*/index.html
# Sphinx
doc/build
doc/source/api/*
# pbr generates these
AUTHORS

View File

@ -1,3 +1,7 @@
============
Contributing
============
If you would like to contribute to the development of OpenStack,
you must follow the steps in this page:

View File

@ -16,6 +16,14 @@ Contents:
usage
contributing
.. # NOTE(mriedem): This is where we hide things that we don't want shown in
# the top level table of contents. api/autoindex is hidden since it's in
# the modindex link below.
.. toctree::
:hidden:
api/autoindex
Indices and tables
==================

View File

@ -75,9 +75,12 @@ class ResultSet(list):
natural.
For instance:
results = se.search(...)
for hit in results:
print hit.build_status
::
results = se.search(...)
for hit in results:
print hit.build_status
This greatly simplifies code that is interacting with search results, and
allows us to handle some schema instability with elasticsearch, through

View File

@ -53,3 +53,7 @@ input_file = elastic_recheck/locale/elastic-recheck.pot
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = elastic_recheck/locale/elastic-recheck.pot
[pbr]
autodoc_index_modules = True
warnerrors = True