From bd5418b0aca3d576f080983621d0fd633787772c Mon Sep 17 00:00:00 2001 From: Lindsey Heagy Date: Sat, 24 Sep 2016 09:41:01 -0700 Subject: [PATCH 1/2] add http://www.ngdc.noaa.gov/ to linkcheck ignore (temp), the site is down for the day --- conf.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/conf.py b/conf.py index cfd03308..bf786893 100644 --- a/conf.py +++ b/conf.py @@ -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 @@ -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} From d660d23f8361a6c785ec4a43372bc0c6401f8a8c Mon Sep 17 00:00:00 2001 From: Lindsey Heagy Date: Sat, 24 Sep 2016 10:23:02 -0700 Subject: [PATCH 2/2] typo fix --- conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.py b/conf.py index bf786893..cff508b8 100644 --- a/conf.py +++ b/conf.py @@ -95,7 +95,7 @@ ] linkcheck_ignore = [ - 'http://www.ngdc.noaa.gov/'*, + 'http://www.ngdc.noaa.gov/*', ] # The reST default role (used for this markup: `text`) to use for all