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
This commit is contained in:
parent
eb0da97ea6
commit
96357aec04
0
doc/ext/__init__.py
Normal file
0
doc/ext/__init__.py
Normal file
@ -11,8 +11,19 @@
|
|||||||
# implied.
|
# implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
from watcher import version as watcher_version
|
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 ----------------------------------------------------
|
# -- General configuration ----------------------------------------------------
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
@ -26,7 +37,7 @@ extensions = [
|
|||||||
'sphinxcontrib.pecanwsme.rest',
|
'sphinxcontrib.pecanwsme.rest',
|
||||||
'stevedore.sphinxext',
|
'stevedore.sphinxext',
|
||||||
'wsmeext.sphinxext',
|
'wsmeext.sphinxext',
|
||||||
'watcher.doc',
|
'ext.term',
|
||||||
]
|
]
|
||||||
|
|
||||||
wsme_protocols = ['restjson']
|
wsme_protocols = ['restjson']
|
||||||
|
Loading…
Reference in New Issue
Block a user