1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Use local mathjax from Debian package
Author: Kurt Kremitzki <kkremitzki@debian.org>
Last-Update: 2021-08-25
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,14 +48,14 @@
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage',
- #'sphinx.ext.mathjax',
+ 'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.autosummary',
'numpydoc',
'nbsphinx',
'matplotlib.sphinxext.plot_directive',
- 'sphinxcontrib.katex',
- 'sphinx_sitemap',
+ #'sphinxcontrib.katex',
+ #'sphinx_sitemap',
'sphinx.ext.intersphinx',
]
@@ -341,6 +341,9 @@
nbsphinx_requirejs_path = 'require.js'
+# Debian change, use local MathJax
+mathjax_path = 'MathJax.js'
+
def setup(app):
#app.add_javascript('copybutton.js')
# Register a sphinx.ext.autodoc.between listener to ignore everything
|