提交 bdb95adc authored 作者: Frederic Bastien's avatar Frederic Bastien

Support new sphinx version without warning. Needed for our CI.

上级 178dc3ce
......@@ -42,11 +42,17 @@ todo_include_todos = True
napoleon_google_docstring = False
napoleon_include_special_with_doc = False
# We do it like this to support multiple sphinx version without having warning.
# Our buildbot consider warning as error.
try:
from sphinx.ext import pngmath
extensions.append('sphinx.ext.pngmath')
from sphinx.ext import imgmath
extensions.append('sphinx.ext.imgmath')
except ImportError:
pass
try:
from sphinx.ext import pngmath
extensions.append('sphinx.ext.pngmath')
except ImportError:
pass
# Add any paths that contain templates here, relative to this directory.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论