Skip to content

Commit

Permalink
Merge pull request #11 from Edraak/omar/fix-test-cases-issues
Browse files Browse the repository at this point in the history
Fix test cases rendering issues
  • Loading branch information
OmarIthawi authored Jun 10, 2017
2 parents 1de7f29 + 6e29fb1 commit a5587dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ Even better, grab my docker-based development environment from here so you can h
$ cd arabic-mathjax
$ git clone git@github.com:Edraak/MathJax-third-party-extensions.git extensions
$ git clone git@github.com:mathjax/MathJax mathjax
$ cd mathjax
$ git checkout 2.6.1
$ cd ..
$ git clone git@github.com:Edraak/arabic-extension-static.git static
$ make init
$ docker-compose up
Expand Down
10 changes: 5 additions & 5 deletions testcases/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
var isLocalDevelopment = (location.host.indexOf('local') !== -1);
</script>

<link href="http://fonts.googleapis.com/css?family=Amiri&amp;subset=arabic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/earlyaccess/droidarabicnaskh.css" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Amiri&amp;subset=arabic" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/earlyaccess/droidarabicnaskh.css" rel="stylesheet" type="text/css">

<link href="style.css" rel="stylesheet" type="text/css">

Expand All @@ -26,7 +26,7 @@
if (isLocalDevelopment) {
mathjaxScript = '/mathjax/unpacked/MathJax.js?config=' + mathjaxConfigs;
} else {
mathjaxScript = '//cdn.mathjax.org/mathjax/latest/unpacked/MathJax.js?config=' + mathjaxConfigs;
mathjaxScript = '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.6.1/MathJax.js?config=' + mathjaxConfigs;
}

var script = document.createElement("script");
Expand Down Expand Up @@ -73,9 +73,9 @@
arabicExtensionPath = "[arabic]/unpacked/arabic.js";
MathJax.Ajax.config.path["Test"] = "/testcases/test-extensions";
} else {
MathJax.Ajax.config.path["arabic"] = "//edraak.github.io/arabic-extension-static/arabic";
MathJax.Ajax.config.path["arabic"] = "../dist/";
arabicExtensionPath = "[arabic]/arabic.js";
MathJax.Ajax.config.path["Test"] = "//edraak.github.io/arabic-mathjax-dev/testcases/test-extensions";
MathJax.Ajax.config.path["Test"] = "test-extensions";
}

MathJax.Hub.Config({
Expand Down

0 comments on commit a5587dd

Please sign in to comment.