From 59f041a5b970d92f9eebc3cd92da61134b5fddaf Mon Sep 17 00:00:00 2001 From: Kexuan Sun Date: Sat, 25 Nov 2017 11:45:51 -0800 Subject: Replace sphinx extension sphinx.ext.pngmath by sphinx.ext.imgmath. --- doc/source/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/source/conf.py') diff --git a/doc/source/conf.py b/doc/source/conf.py index b89639ae8..7c34a62cd 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -129,8 +129,9 @@ html_file_suffix = '.html' htmlhelp_basename = 'numpy' -pngmath_use_preview = True -pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent'] +if 'sphinx.ext.pngmath' in extensions: + pngmath_use_preview = True + pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent'] plot_html_show_formats = False plot_html_show_source_link = False -- cgit v1.2.1