Skip to content

Commit 6e20c31

Browse files
committed
point to node_modules/mathjax instead of vendor/extras/mathjax
1 parent 1a383d7 commit 6e20c31

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

devtools/test_dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<div id="snapshot"></div>
2121

22-
<script src="../../vendor/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
22+
<script src="../../node_modules/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
2323
<script id="source" src="../../build/plotly.js" charset="utf-8"></script>
2424
<script src="../../build/test_dashboard-bundle.js" charset="utf-8"></script>
2525
</body>

test/image/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<body>
44
<!-- this index file gets copied in to the image server docker -->
5-
<script src="../plotly.js/vendor/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
5+
<script src="../plotly.js/node_modules/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
66
<script src="../plotly.js/build/plotly.js" charset="utf-8"></script>
77
<script src="../plotly.js/build/plotly-geo-assets.js" charset="utf-8"></script>
88
<script src="./main.js"></script>

test/jasmine/bundle_tests/mathjax_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Test MathJax:', function() {
2424
mathJaxScriptTag.onerror = function() {
2525
fail('MathJax failed to load');
2626
};
27-
mathJaxScriptTag.src = '/base/vendor/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG';
27+
mathJaxScriptTag.src = '/base/node_modules/mathjax/MathJax.js?config=TeX-AMS-MML_SVG';
2828
document.body.appendChild(mathJaxScriptTag);
2929
});
3030

test/jasmine/karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var pathToJQuery = path.join(__dirname, 'assets', 'jquery-1.8.3.min.js');
122122
var pathToCustomMatchers = path.join(__dirname, 'assets', 'custom_matchers.js');
123123
var pathToUnpolyfill = path.join(__dirname, 'assets', 'unpolyfill.js');
124124
var pathToSaneTopojsonDist = path.join(__dirname, '..', '..', 'node_modules', 'sane-topojson', 'dist');
125-
var pathToMathJax = path.join(constants.pathToVendor, 'extras', 'mathjax');
125+
var pathToMathJax = path.join(__dirname, '..', '..', 'node_modules', 'mathjax');
126126

127127
var reporters = [];
128128
if(argv['report-progress'] || argv['report-spec'] || argv['report-dots']) {
@@ -180,7 +180,7 @@ func.defaultConfig = {
180180
files: [
181181
pathToCustomMatchers,
182182
pathToUnpolyfill,
183-
// available to fetch from /base/vendor/extras/mathjax/
183+
// available to fetch from /base/node_modules/mathjax/
184184
// more info: http://karma-runner.github.io/3.0/config/files.html
185185
{pattern: pathToMathJax + '/**', included: false, watched: false, served: true},
186186
// available to fetch from /base/node_modules/sane-topojson/dist/

0 commit comments

Comments
 (0)