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

@ -438,7 +438,7 @@ 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.

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

@ -96,9 +96,9 @@ class BaseSolution(object):
:param applies_to: the unique id of the resource to which the
`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()