Fix 'Module index' broken HTTP link

'Module Index' link points to HTML doc generated from source/api
RST files. These RST files are generated by pbr, by setting the
parameter 'autodoc_index_modules' to True.

Partial-Bug: #1535244
Change-Id: Ifceb5a140599d3968ea3d353b12c0bbe99d955e6
This commit is contained in:
David TARDIVEL 2016-01-15 14:43:22 +01:00
parent 595b13a622
commit c8096c6148
10 changed files with 44 additions and 27 deletions

1
.gitignore vendored
View File

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

View File

@ -75,6 +75,7 @@ should implement:
.. autoclass:: BaseStrategy .. autoclass:: BaseStrategy
:members: :members:
:noindex:
Add a new entry point Add a new entry point
@ -169,6 +170,7 @@ Here below is the abstract ``BaseClusterHistory`` class of the Helper.
.. autoclass:: BaseClusterHistory .. autoclass:: BaseClusterHistory
:members: :members:
:noindex:
The following snippet code shows how to create a Cluster History class: The following snippet code shows how to create a Cluster History class:

View File

@ -264,13 +264,6 @@ Please, read `the official OpenStack definition of a Project <http://docs.openst
.. _primitive_definition: .. _primitive_definition:
Primitive
=========
.. watcher-term:: watcher.applier.primitives.base
.. _sla_definition:
SLA SLA
=== ===

View File

@ -71,6 +71,15 @@ Watcher Manual Pages
man/* man/*
.. # NOTE(mriedem): This is the section where we hide things that we don't
# actually want in the table of contents but sphinx build would fail if
# they aren't in the toctree somewhere. For example, we hide api/autoindex
# since that's already covered with modindex below.
.. toctree::
:hidden:
api/autoindex
Indices and tables Indices and tables
================== ==================

View File

@ -62,6 +62,16 @@ watcher_workflow_engines =
watcher_planners = watcher_planners =
default = watcher.decision_engine.planner.default:DefaultPlanner default = watcher.decision_engine.planner.default:DefaultPlanner
[pbr]
autodoc_index_modules = True
autodoc_exclude_modules =
watcher.db.sqlalchemy.alembic.env
watcher.db.sqlalchemy.alembic.versions.*
watcher.tests.*
watcher_tempest_plugin.*
watcher.doc
[build_sphinx] [build_sphinx]
source-dir = doc/source source-dir = doc/source
build-dir = doc/build build-dir = doc/build

View File

@ -20,12 +20,14 @@ commands =
commands = flake8 commands = flake8
[testenv:venv] [testenv:venv]
setenv = PYTHONHASHSEED=0
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
commands = python setup.py testr --coverage --omit="watcher/tests/*" --testr-args='{posargs}' commands = python setup.py testr --coverage --omit="watcher/tests/*" --testr-args='{posargs}'
[testenv:docs] [testenv:docs]
setenv = PYTHONHASHSEED=0
commands = python setup.py build_sphinx commands = python setup.py build_sphinx
[testenv:debug] [testenv:debug]

View File

@ -438,7 +438,7 @@ class NovaClient(object):
It waits for this image to be in 'active' state before returning. It waits for this image to be in 'active' state before returning.
It returns the unique UUID of the created image if successful, It returns the unique UUID of the created image if successful,
None otherwise None otherwise.
:param instance_id: the uniqueid of :param instance_id: the uniqueid of
the instance to backup as an image. the instance to backup as an image.

View File

@ -53,8 +53,8 @@ class BasePlanner(object):
:param solution: the solution given by the strategy to :param solution: the solution given by the strategy to
:param audit_uuid: the audit uuid :param audit_uuid: the audit uuid
:return: ActionPlan ordered sequence of change requests :return: ActionPlan ordered sequence of change requests
such that all security, dependency, such that all security, dependency, and performance
and performance requirements are met. requirements are met.
""" """
# example: directed acyclic graph # example: directed acyclic graph
raise NotImplementedError() raise NotImplementedError()

View File

@ -96,9 +96,9 @@ class BaseSolution(object):
:param applies_to: the unique id of the resource to which the :param applies_to: the unique id of the resource to which the
`Action` applies. `Action` applies.
:param input_parameters: An array of input parameters provided as :param input_parameters: An array of input parameters provided as
key-value pairs of strings. key-value pairs of strings. Each key-pair contains names and
Each key-pair contains names and values that match what was previously values that match what was previously defined in the `Action`
defined in the `Action` type schema. type schema.
""" """
raise NotImplementedError() raise NotImplementedError()