Updates to docs errors.

This commit is contained in:
Rowan Cockett
2016-05-29 18:57:38 -07:00
parent a131383dae
commit bc073e49b5
7 changed files with 56 additions and 24 deletions
+15
View File
@@ -0,0 +1,15 @@
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, '%s:%s' % get_source_line(node))
if __name__ == '__main__':
checkDependencies()