Skip to content

Commit

Permalink
Merge branch 'master' into Patrick-Belliveau
Browse files Browse the repository at this point in the history
  • Loading branch information
lheagy committed Sep 24, 2016
2 parents 45d5721 + 123473e commit 904d8a9
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
linkcheck_ignore = [
'https://en.wikipedia.org/wiki/Seismic_source#/media/*',
'http://www.sgl.com/technicalpapers/EAGEabst-final-TV.pdf',
'http://geogratis.gc.ca/site/eng/extraction'
'http://geogratis.gc.ca/site/eng/extraction',
'http://www.ngdc.noaa.gov/*',
]

# The reST default role (used for this markup: `text`) to use for all
Expand Down Expand Up @@ -308,17 +309,6 @@
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

def supress_nonlocal_image_warn():
import sphinx.environment
sphinx.environment.BuildEnvironment.warn_node = _supress_nonlocal_image_warn

def _supress_nonlocal_image_warn(self, msg, node):
from docutils.utils import get_source_line

if not msg.startswith('nonlocal image URI found:'):
self._warnfunc(msg, '{0!s}:{1!s}'.format(*get_source_line(node)))

supress_nonlocal_image_warn()

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
Expand Down

0 comments on commit 904d8a9

Please sign in to comment.