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

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

上级 178dc3ce
...@@ -42,10 +42,16 @@ todo_include_todos = True ...@@ -42,10 +42,16 @@ todo_include_todos = True
napoleon_google_docstring = False napoleon_google_docstring = False
napoleon_include_special_with_doc = 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: try:
from sphinx.ext import imgmath
extensions.append('sphinx.ext.imgmath')
except ImportError:
try:
from sphinx.ext import pngmath from sphinx.ext import pngmath
extensions.append('sphinx.ext.pngmath') extensions.append('sphinx.ext.pngmath')
except ImportError: except ImportError:
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论