Skip to content

Commit

Permalink
removed obsolete non-local image warning hack
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Apr 12, 2019
1 parent f171b87 commit 106bfd8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/conf.py
Expand Up @@ -67,18 +67,6 @@
# The full version, including alpha/beta/rc tags.
release = __about__.__version__

# Monkey patch to disable nonlocal image warning
import sphinx
if hasattr(sphinx, 'environment'):
original_warn_mode = sphinx.environment.BuildEnvironment.warn_node

def allow_nonlocal_image_warn_node(self, msg, *args, **kwargs):
if not msg.startswith('nonlocal image URI found:'):
original_warn_mode(self, msg, *args, **kwargs)

sphinx.environment.BuildEnvironment.warn_node = \
allow_nonlocal_image_warn_node

suppress_warnings = [
'image.nonlocal_uri',
]
Expand Down

0 comments on commit 106bfd8

Please sign in to comment.