Merge "Moved Watcher doc plugin outside main package"

This commit is contained in:
Jenkins 2016-10-13 08:42:09 +00:00 committed by Gerrit Code Review
commit ff81f237a7
3 changed files with 12 additions and 1 deletions

0
doc/ext/__init__.py Normal file
View File

View File

@ -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']