Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Can't load MathJax.js when the root directory contains chinese characters #28

Open
LiuDongjing opened this issue Mar 11, 2017 · 0 comments

Comments

@LiuDongjing
Copy link

When the root diretory is "书籍", and run "gitbook serve", it reports "Can't load MathJax.js from file:///D:/Code/书籍/node_modules/mathjax/unpacked/MathJax.js"

Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 8 plugins are installed
info: loading plugin "mathjax"... OK
info: loading plugin "livereload"... OK
info: loading plugin "highlight"... OK
info: loading plugin "search"... OK
info: loading plugin "lunr"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 4 pages
info: found 3 asset files
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "book" property is deprecated, use "this" directly instead
warn: "options" property is deprecated, use config.get(key) instead
Can't load MathJax.js from file:///D:/Code/书籍/node_modules/mathjax/unpacked/MathJax.js

When I change “书籍” to "book", and run "gitbook serve" again, everything is OK.

Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 8 plugins are installed
info: loading plugin "mathjax"... OK
info: loading plugin "livereload"... OK
info: loading plugin "highlight"... OK
info: loading plugin "search"... OK
info: loading plugin "lunr"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 4 pages
info: found 3 asset files
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "book" property is deprecated, use "this" directly instead
warn: "options" property is deprecated, use config.get(key) instead
info: >> generation finished with success in 2.0s !

Starting server ...
Serving book on http://localhost:4000
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant