File: sphinx_mathjax.patch

package info (click to toggle)
python-xrt 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,036 kB
  • sloc: python: 49,035; xml: 4,553; lisp: 3,554; sh: 22; javascript: 18; makefile: 17
file content (22 lines) | stat: -rw-r--r-- 920 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -115,6 +115,8 @@
 # If your documentation needs a minimal Sphinx version, state it here.
 #needs_sphinx = '1.0'
 
+mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 #extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath']
--- a/xrt/gui/commons/conf.py
+++ b/xrt/gui/commons/conf.py
@@ -2,6 +2,8 @@
 #
 # xrt documentation build configuration file, created by sphinx-quickstart
 
+mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 #extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath']