Skip to content

Commit

Permalink
Merge pull request geoscixyz#108 from ubcgif/patch/links
Browse files Browse the repository at this point in the history
Patch/links
  • Loading branch information
lheagy authored Sep 24, 2016
2 parents 158191c + d660d23 commit 123473e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
'content/*/include/*'
]

linkcheck_ignore = [
'http://www.ngdc.noaa.gov/*',
]

# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
Expand Down Expand Up @@ -302,17 +306,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 123473e

Please sign in to comment.