diff options
author | Kexuan Sun <me@kianasun.com> | 2017-11-25 11:45:51 -0800 |
---|---|---|
committer | Kexuan Sun <me@kianasun.com> | 2017-11-25 11:45:51 -0800 |
commit | 59f041a5b970d92f9eebc3cd92da61134b5fddaf (patch) | |
tree | f9628a3167ac7fca1c071a663fe99cab722b699a /doc/source/conf.py | |
parent | 72ba6f150bfec88866381b367d3bedcc3270453e (diff) | |
download | numpy-59f041a5b970d92f9eebc3cd92da61134b5fddaf.tar.gz |
Replace sphinx extension sphinx.ext.pngmath by sphinx.ext.imgmath.
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r-- | doc/source/conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 |