Skip to content

Commit

Permalink
Merge pull request #9 from pkra/master
Browse files Browse the repository at this point in the history
change path variable
  • Loading branch information
OmarIthawi authored Apr 23, 2017
2 parents 395d037 + d4db567 commit fb03d8e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ and [configure](http://mathjax.readthedocs.org/en/latest/configuration.html) the

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

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

MathJax.Hub.Config({
extensions: [
"[Contrib]/arabic/arabic.js"
"[arabic]/arabic.js"
]
});

Expand Down
2 changes: 1 addition & 1 deletion dist/arabic.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/unpacked/arabic.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,4 @@ MathJax.Hub.Register.StartupHook('TeX Jax Ready', function () {
});

// This file starting with the letter `z` to make sure it gets concatenated last!
MathJax.Ajax.loadComplete("[Contrib]/arabic/unpacked/arabic.js");
MathJax.Ajax.loadComplete("[arabic]/unpacked/arabic.js");
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ gulp.task('scripts-pack', function () {
preserveComments: 'some'
}))
.pipe(replace(arabicCharsRegExp, unicodeEscapeArabicChars))
.pipe(replace('[Contrib]/arabic/unpacked/arabic.js', '[Contrib]/arabic/arabic.js'))
.pipe(replace('[arabic]/unpacked/arabic.js', '[arabic]/arabic.js'))
.pipe(gulp.dest('/code/dist/'));
});

Expand Down
2 changes: 1 addition & 1 deletion src/z-load-complete.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file starting with the letter `z` to make sure it gets concatenated last!
MathJax.Ajax.loadComplete("[Contrib]/arabic/unpacked/arabic.js");
MathJax.Ajax.loadComplete("[arabic]/unpacked/arabic.js");
8 changes: 4 additions & 4 deletions testcases/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
var arabicExtensionPath;

if (isLocalDevelopment) {
MathJax.Ajax.config.path["Contrib"] = "/extensions";
arabicExtensionPath = "[Contrib]/arabic/unpacked/arabic.js";
MathJax.Ajax.config.path["arabic"] = "/extensions/arabic";
arabicExtensionPath = "[arabic]/unpacked/arabic.js";
MathJax.Ajax.config.path["Test"] = "/testcases/test-extensions";
} else {
MathJax.Ajax.config.path["Contrib"] = "//edraak.github.io/arabic-extension-static";
arabicExtensionPath = "[Contrib]/arabic/arabic.js";
MathJax.Ajax.config.path["arabic"] = "//edraak.github.io/arabic-extension-static/arabic";
arabicExtensionPath = "[arabic]/arabic.js";
MathJax.Ajax.config.path["Test"] = "//edraak.github.io/arabic-mathjax-dev/testcases/test-extensions";
}

Expand Down

0 comments on commit fb03d8e

Please sign in to comment.