File: Use-packaged-MathJax.patch

package info (click to toggle)
python-xarray 2025.03.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 11,608 kB
  • sloc: python: 110,134; makefile: 255; sh: 53
file content (28 lines) | stat: -rw-r--r-- 825 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
23
24
25
26
27
28
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Sat, 15 Apr 2017 16:01:30 +0100
Subject: Use packaged MathJax

Last-Updated: 2024-11-06
Forwarded: not-needed

  Updated by Alastair McKinstry <mckinstry@debian.org>:
  - set URL
---
 doc/conf.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/conf.py b/doc/conf.py
index 3561ffe..e2fe5be 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -190,6 +190,10 @@ napoleon_type_aliases = {
 # mermaid config
 mermaid_version = "10.9.1"
 
+mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
+require_js_url = 'file:////usr/share/javascript/requirejs/require.min.js'
+
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]