Skip to content

Commit fb03d8e

Browse files
authored
Merge pull request #9 from pkra/master
change path variable
2 parents 395d037 + d4db567 commit fb03d8e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

dist/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ and [configure](http://mathjax.readthedocs.org/en/latest/configuration.html) the
1717

1818
Then you'll need to include the `arabic.js` as an extension, here's an example configuration:
1919

20-
MathJax.Ajax.config.path["Contrib"] = "//cdn.mathjax.org/mathjax/contrib";
20+
MathJax.Ajax.config.path["arabic"] = "//path/to/arabic/";
2121

2222
MathJax.Hub.Config({
2323
extensions: [
24-
"[Contrib]/arabic/arabic.js"
24+
"[arabic]/arabic.js"
2525
]
2626
});
2727

dist/arabic.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/unpacked/arabic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,4 +439,4 @@ MathJax.Hub.Register.StartupHook('TeX Jax Ready', function () {
439439
});
440440

441441
// This file starting with the letter `z` to make sure it gets concatenated last!
442-
MathJax.Ajax.loadComplete("[Contrib]/arabic/unpacked/arabic.js");
442+
MathJax.Ajax.loadComplete("[arabic]/unpacked/arabic.js");

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ gulp.task('scripts-pack', function () {
6161
preserveComments: 'some'
6262
}))
6363
.pipe(replace(arabicCharsRegExp, unicodeEscapeArabicChars))
64-
.pipe(replace('[Contrib]/arabic/unpacked/arabic.js', '[Contrib]/arabic/arabic.js'))
64+
.pipe(replace('[arabic]/unpacked/arabic.js', '[arabic]/arabic.js'))
6565
.pipe(gulp.dest('/code/dist/'));
6666
});
6767

src/z-load-complete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// This file starting with the letter `z` to make sure it gets concatenated last!
2-
MathJax.Ajax.loadComplete("[Contrib]/arabic/unpacked/arabic.js");
2+
MathJax.Ajax.loadComplete("[arabic]/unpacked/arabic.js");

testcases/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@
6969
var arabicExtensionPath;
7070

7171
if (isLocalDevelopment) {
72-
MathJax.Ajax.config.path["Contrib"] = "/extensions";
73-
arabicExtensionPath = "[Contrib]/arabic/unpacked/arabic.js";
72+
MathJax.Ajax.config.path["arabic"] = "/extensions/arabic";
73+
arabicExtensionPath = "[arabic]/unpacked/arabic.js";
7474
MathJax.Ajax.config.path["Test"] = "/testcases/test-extensions";
7575
} else {
76-
MathJax.Ajax.config.path["Contrib"] = "//edraak.github.io/arabic-extension-static";
77-
arabicExtensionPath = "[Contrib]/arabic/arabic.js";
76+
MathJax.Ajax.config.path["arabic"] = "//edraak.github.io/arabic-extension-static/arabic";
77+
arabicExtensionPath = "[arabic]/arabic.js";
7878
MathJax.Ajax.config.path["Test"] = "//edraak.github.io/arabic-mathjax-dev/testcases/test-extensions";
7979
}
8080

0 commit comments

Comments
 (0)