From: Yaroslav Halchenko Date: Thu, 10 Jan 2019 16:05:31 +0000 (+0000) Subject: depends on not yet packaged https://github.com/matthew-brett/texext X-Git-Tag: archive/raspbian/0.4.2-2+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ba67da6de690bba553abb6b9c99b84a1c9280b58;p=nipy.git depends on not yet packaged https://github.com/matthew-brett/texext Origin: NeuroDebian Last-Update: 2018-02-19 Gbp-Pq: Name deb_no_texext --- diff --git a/doc/conf.py b/doc/conf.py index 755d2df..bd6e2df 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -38,18 +38,26 @@ needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ - 'texext.mathcode', 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.mathjax', 'sphinx.ext.autosummary', - 'texext.math_dollar', 'numpydoc', 'sphinx.ext.inheritance_diagram', 'matplotlib.sphinxext.plot_directive', 'IPython.sphinxext.ipython_console_highlighting', ] +try: + import texext.mathcode + import texext.math_dollar + extensions += [ + 'texext.mathcode', + 'texext.math_dollar', + ] +except ImportError: + pass + # Autosummary on autosummary_generate=True