From d16162baffb140de971e24aad71c8cce257a6fce Mon Sep 17 00:00:00 2001 From: Stefan Bienert <stefan.bienert@unibas.ch> Date: Wed, 28 Nov 2018 14:57:42 +0100 Subject: [PATCH] Switch documentation from sphinx.ext.imgmath to sphinx.ext.mathjax for rendering formulas --- doc/conf.py.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/conf.py.in b/doc/conf.py.in index d47f5add..394831ba 100644 --- a/doc/conf.py.in +++ b/doc/conf.py.in @@ -37,7 +37,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', - 'sphinx.ext.pngmath', + 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.extlinks', 'cmake'] @@ -107,6 +107,13 @@ pygments_style = 'sphinx' # -- Options for HTML output --------------------------------------------------- +# Since we use sphinx.ext.mathjax to render formulas on HTML pages: The +# MathJax web-page deprecated their own CDN to serve JavaScript but it is +# still the default for Sphinx. Here we redirect to the CDN recommended by +# MathJax. +mathjax_path = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' + + # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'alabaster' -- GitLab