From 96357aec04960e467a65bb32a049235a2ba25ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Fran=C3=A7oise?= Date: Wed, 5 Oct 2016 15:22:50 +0200 Subject: [PATCH] Moved Watcher doc plugin outside main package In this changeset, I renamed watcher/doc.py file as doc/ext/term.py which subsequently does not get scanned for coverage anymore. Hence, we can close this bug. Change-Id: I9d700da6569b464ce71085fe78002521555002b9 Closes-bug: #1527163 --- doc/ext/__init__.py | 0 watcher/doc.py => doc/ext/term.py | 0 doc/source/conf.py | 13 ++++++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 doc/ext/__init__.py rename watcher/doc.py => doc/ext/term.py (100%) diff --git a/doc/ext/__init__.py b/doc/ext/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/watcher/doc.py b/doc/ext/term.py similarity index 100% rename from watcher/doc.py rename to doc/ext/term.py diff --git a/doc/source/conf.py b/doc/source/conf.py index 88aa0e956..91ba606cc 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -11,8 +11,19 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. + +import sys +import os + from watcher import version as watcher_version +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +sys.path.insert(0, os.path.abspath('../../')) +sys.path.insert(0, os.path.abspath('../')) +sys.path.insert(0, os.path.abspath('./')) + # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be @@ -26,7 +37,7 @@ extensions = [ 'sphinxcontrib.pecanwsme.rest', 'stevedore.sphinxext', 'wsmeext.sphinxext', - 'watcher.doc', + 'ext.term', ] wsme_protocols = ['restjson']