summaryrefslogtreecommitdiff
blob: a4c29048b925819e1cf172520189eaaf3a7a8122 (plain)
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
35
36
37
38
39
40
41
42
Disable bundled mathjax.

Patch by Marius Brehler
--- a/setupbase.py
+++ b/setupbase.py
@@ -152,36 +152,6 @@ def find_package_data():
             if f.endswith(('.js', '.css')):
                 static_data.append(pjoin(parent, f))
 
-    # Trim mathjax
-    mj = lambda *path: pjoin(components, 'MathJax', *path)
-    static_data.extend([
-        mj('MathJax.js'),
-        mj('config', 'TeX-AMS_HTML-full.js'),
-        mj('config', 'Safe.js'),
-    ])
-    
-    trees = []
-    mj_out = mj('jax', 'output')
-    
-    if os.path.exists(mj_out):
-        for output in os.listdir(mj_out):
-            path = pjoin(mj_out, output)
-            static_data.append(pjoin(path, '*.js'))
-            autoload = pjoin(path, 'autoload')
-            if os.path.isdir(autoload):
-                trees.append(autoload)
-
-    for tree in trees + [
-        mj('localization'), # limit to en?
-        mj('fonts', 'HTML-CSS', 'STIX-Web', 'woff'),
-        mj('extensions'),
-        mj('jax', 'input', 'TeX'),
-        mj('jax', 'output', 'HTML-CSS', 'fonts', 'STIX-Web'),
-        mj('jax', 'output', 'SVG', 'fonts', 'STIX-Web'),
-    ]:
-        for parent, dirs, files in os.walk(tree):
-            for f in files:
-                static_data.append(pjoin(parent, f))
 
     os.chdir(os.path.join('tests',))
     js_tests = glob('*.js') + glob('*/*.js')