Skip to content
Snippets Groups Projects
Commit 38e66eeb authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[wip/py-dynamic-graph-tutorial] add patch-aa to fix compilation with sphinx >= 1.8

parent fda8b638
No related branches found
No related tags found
No related merge requests found
SHA1 (dynamic-graph-tutorial-1.1.1.tar.gz) = 45b23da4ad9fbac1e3eb5fe097c145b7d5079794
RMD160 (dynamic-graph-tutorial-1.1.1.tar.gz) = 50c7accf6656b54162f642398ce76f886cefcf98
Size (dynamic-graph-tutorial-1.1.1.tar.gz) = 773815 bytes
SHA1 (patch-aa) = c64971cf8d1c18b3e0224dd58b40f97c1cd24e6f
[Doc][Sphinx] Use imgmath with sphinx >= 1.4, as pngmath has been removed in 1.8
--- doc/sphinx/conf.py.in
+++ doc/sphinx/conf.py.in
@@ -19,13 +19,14 @@ import sys, os
sys.path = [os.path.abspath('@CMAKE_BINARY_DIR@/src')]+sys.path
sys.path = [os.path.abspath('@CMAKE_SOURCE_DIR@/src')]+sys.path
-import dynamic_graph.tutorial as dgt
+from sphinx import version_info as sphinx_version
# -- General configuration -----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.pngmath']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
+extensions.append('sphinx.ext.pngmath' if sphinx_version < (1, 4) else 'sphinx.ext.imgmath')
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment