Skip to content

Commit

Permalink
docs: sphinx 1.4.2
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
  • Loading branch information
tiborsimko committed Jun 22, 2016
1 parent 1bdc7d0 commit 691943d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions docs/conf.py
Expand Up @@ -29,20 +29,14 @@
import sphinx.environment
from docutils.utils import get_source_line


def _warn_node(self, msg, node):
"""Do not warn on external images."""
if not msg.startswith('nonlocal image URI found:'):
self._warnfunc(msg, '%s:%s' % get_source_line(node))

sphinx.environment.BuildEnvironment.warn_node = _warn_node


# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Do not warn on external images.
suppress_warnings = ['image.nonlocal_uri']

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -48,7 +48,7 @@

extras_require = {
'docs': [
"Sphinx>=1.3",
"Sphinx>=1.4.2",
],
'tests': tests_require,
}
Expand Down

0 comments on commit 691943d

Please sign in to comment.