Skip to content

Commit

Permalink
Merge de479fd into d295763
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimko committed Jun 22, 2016
2 parents d295763 + de479fd commit 10954b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,14 @@

import sphinx.environment

_warn_node_old = sphinx.environment.BuildEnvironment.warn_node


def _warn_node(self, msg, *args, **kwargs):
"""Do not warn on external images."""
if not msg.startswith('nonlocal image URI found:'):
_warn_node_old(self, msg, *args, **kwargs)

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
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

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

0 comments on commit 10954b3

Please sign in to comment.