File: sphinx_mathjax_location.patch

package info (click to toggle)
mame 0.280%2Bdfsg.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 911,560 kB
  • sloc: cpp: 5,252,752; xml: 2,221,427; ansic: 750,970; sh: 34,449; lisp: 19,643; python: 16,304; makefile: 13,251; java: 8,492; yacc: 8,152; javascript: 7,069; cs: 6,013; asm: 4,786; ada: 1,681; pascal: 1,191; lex: 1,174; perl: 585; ruby: 373
file content (19 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Jordi Mallach <jordi@debian.org>
Description: Use the packaged version of MathJax.
 Avoid a privacy breach by using the packaged version of
 libjs-mathjax in the generated sphinx docs.
Forwarded: no

Index: mame/docs/source/conf.py
===================================================================
--- mame.orig/docs/source/conf.py
+++ mame/docs/source/conf.py
@@ -40,7 +40,7 @@ edit_on_github_project = 'mamedev/mame'
 edit_on_github_branch = 'master/docs/source'
 
 # Math
-mathjax_path = "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
+mathjax_path = "file:///usr/share/javascript/mathjax/config/TeX-AMS-MML_HTMLorMML.js"
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']