From: Yaroslav Halchenko Date: Mon, 19 Feb 2018 16:06:56 +0000 (+0000) Subject: depends on not yet packaged https://github.com/matthew-brett/texext X-Git-Tag: archive/raspbian/0.4.2-1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d4da61c207c7237ce0609e46bdc9474da96c418a;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