deb_ndsphinx_optional
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 24 Apr 2018 19:09:20 +0000 (20:09 +0100)
committerGraham Inggs <ginggs@debian.org>
Tue, 24 Apr 2018 19:09:20 +0000 (20:09 +0100)
Gbp-Pq: Name deb_ndsphinx_optional

doc/source/conf.py

index cf84aca316cd7f3c89f7e40611c3dedd40f4f8cb..aa8d7de60da1b273066053d7ee068bce77469240 100644 (file)
@@ -64,10 +64,14 @@ extensions = ['sphinx.ext.autodoc',
               'sphinx.ext.mathjax',
               'sphinx.ext.ifconfig',
               'sphinx.ext.linkcode',
-              'nbsphinx',
               ]
 
 mathjax_path='MathJax.js'
+try:
+    import nbsphinx
+    extensions += ['nbsphinx']
+except:
+    pass  # survive without
 
 exclude_patterns = ['**.ipynb_checkpoints']