Skip to content

Commit

Permalink
Fix tox, doc cleanup, silent non-local image URI on sphinx-build
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezcuesta committed Feb 24, 2016
1 parent b302e39 commit 6ae5bf4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
11 changes: 10 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
import sys
import os

# Patch to disable warning on non-local image
import sphinx.environment
from docutils.utils import get_source_line

def _warn_node(self, msg, node):
if not msg.startswith('nonlocal image URI found:'):
self._warnfunc(msg, '%s:%s' % get_source_line(node))

sphinx.environment.BuildEnvironment.warn_node = _warn_node

# 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.
Expand All @@ -33,7 +43,6 @@
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinxcontrib.napoleon',
'sphinx_paramlinks',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
1 change: 0 additions & 1 deletion sshtunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
__author__ = 'pahaz'



DEFAULT_LOGLEVEL = logging.ERROR #: default level if no logger passed
LOCAL_CHECK_TIMEOUT = 1.0 #: Timeout (seconds) for local tunnel side detection
DAEMON = False
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# and also to help confirm pull requests to this project.

[tox]
envlist = py{26,27,33,34,35}
envlist = py{26,27,33,34,35}, docs

[testenv]
basepython =
Expand Down

0 comments on commit 6ae5bf4

Please sign in to comment.