Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,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 @@ -32,7 +32,7 @@

extras_require = {
'docs': [
"Sphinx>=1.3",
"Sphinx>=1.4.2",
],
'jsonref': [
'jsonref>=0.1',
Expand Down