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
doc/build
doc/source/api
# pbr generates these
AUTHORS

View File

@ -75,6 +75,7 @@ should implement:
.. autoclass:: BaseStrategy
:members:
:noindex:
Add a new entry point
@ -169,6 +170,7 @@ Here below is the abstract ``BaseClusterHistory`` class of the Helper.
.. autoclass:: BaseClusterHistory
:members:
:noindex:
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
=========
.. watcher-term:: watcher.applier.primitives.base
.. _sla_definition:
SLA
===

View File

@ -71,6 +71,15 @@ Watcher Manual Pages
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
==================

View File

@ -62,6 +62,16 @@ watcher_workflow_engines =
watcher_planners =
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]
source-dir = doc/source
build-dir = doc/build

View File

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

View File

@ -49,12 +49,12 @@ class CeilometerClient(object):
This query can be then used for querying resources, meters and
statistics.
:Parameters:
- `user_id`: user_id, has a priority over list of ids
- `tenant_id`: tenant_id, has a priority over list of ids
- `resource_id`: resource_id, has a priority over list of ids
- `user_ids`: list of user_ids
- `tenant_ids`: list of tenant_ids
- `resource_ids`: list of resource_ids
- `user_id`: user_id, has a priority over list of ids
- `tenant_id`: tenant_id, has a priority over list of ids
- `resource_id`: resource_id, has a priority over list of ids
- `user_ids`: list of user_ids
- `tenant_ids`: list of tenant_ids
- `resource_ids`: list of resource_ids
"""
user_ids = user_ids or []

View File

@ -76,9 +76,9 @@ class NovaClient(object):
:param instance_id: the unique id of the instance to migrate.
:param keep_original_image_name: flag indicating whether the
image name from which the original instance was built must be
used as the name of the intermediate image used for migration.
If this flag is False, a temporary image name is built
image name from which the original instance was built must be
used as the name of the intermediate image used for migration.
If this flag is False, a temporary image name is built
"""
new_image_name = ""
@ -438,13 +438,13 @@ class NovaClient(object):
It waits for this image to be in 'active' state before returning.
It returns the unique UUID of the created image if successful,
None otherwise
None otherwise.
:param instance_id: the uniqueid of
the instance to backup as an image.
the instance to backup as an image.
:param image_name: the name of the image to create.
:param metadata: a dictionary containing the list of
key-value pairs to associate to the image as metadata.
key-value pairs to associate to the image as metadata.
"""
if self.glance is None:
glance_endpoint = self.keystone. \
@ -568,7 +568,7 @@ class NovaClient(object):
:param instance: instance object.
:param status_list: tuple containing the list of
status we are waiting for
status we are waiting for
:param retry: how many times to retry
:param sleep: seconds to sleep between the retries
"""

View File

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

View File

@ -92,13 +92,13 @@ class BaseSolution(object):
"""Add a new Action in the Action Plan
:param action_type: the unique id of an action type defined in
entry point 'watcher_actions'
entry point 'watcher_actions'
: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
key-value pairs of strings.
Each key-pair contains names and values that match what was previously
defined in the `Action` type schema.
key-value pairs of strings. Each key-pair contains names and
values that match what was previously defined in the `Action`
type schema.
"""
raise NotImplementedError()