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 2ab6ac4 commit c73679e
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
Original file line number Diff line number Diff line change
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, '{0}:{1}'.format(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
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

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

0 comments on commit c73679e

Please sign in to comment.