Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Custom MathJax rendering script option #352

Merged
merged 1 commit into from Mar 1, 2013

Conversation

Projects
None yet
3 participants
Contributor

karlicoss commented Mar 1, 2013

For some reason path to MathJax.js has been hardcoded, so I made the mathjax-script option in config to make it possible to specify the path to the script.

I am not sure if there is confusion in my description of mathjax-script option in the default.conf file: you have to either run your own web server (not that hard, but anyway) or copy the entire MathJax directory into gitit's data/static/js directory (which is not the way it is intended to be done, I guess), so there is no per-wiki directory for custom js files?

P.S. Why is some random blahblahblah.cloudfront.net being used, not cdn.mathjax.org?

@jgm jgm merged commit f6c247b into jgm:master Mar 1, 2013

Owner

jgm commented Mar 1, 2013

P.S. Why is some random blahblahblah.cloudfront.net being used, not
cdn.mathjax.org?

I don't remember. Maybe cdn.mathjax.org didn't exist yet when I wrote
this? Or maybe there's something on their site which says to use the
other? If you think cdn.mathjax.org is the best thing to use, I'd
be happy to accept a pull request for that as the default.

Contributor

bmillwood commented Mar 2, 2013

I have this vague recollection that the cloudfront thing is related to HTTPS, but don't quote me on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment