diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-08-29 22:00:31 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-08-29 22:00:31 -0400 |
commit | 5be4a911e0e88bb1346274f6ed99e89053347e0a (patch) | |
tree | 32303b9fc1eaa65526e1472eff884d1d64df72c7 | |
parent | 9eecaec266f71df93acd42579623e53a09b5e61f (diff) | |
download | askbot-5be4a911e0e88bb1346274f6ed99e89053347e0a.tar.gz askbot-5be4a911e0e88bb1346274f6ed99e89053347e0a.tar.bz2 askbot-5be4a911e0e88bb1346274f6ed99e89053347e0a.zip |
added doc page about enabling mathjax
-rw-r--r-- | askbot/doc/source/mathjax.rst | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/askbot/doc/source/mathjax.rst b/askbot/doc/source/mathjax.rst new file mode 100644 index 00000000..4dfc8aad --- /dev/null +++ b/askbot/doc/source/mathjax.rst @@ -0,0 +1,36 @@ +.. _mathjax: + +=================== +Installing MathJax +=================== + +MathJax_ is a browser independent javascript rendering engine for mathematical +expressions. On a MathJax-enabled site, such as Askbot :) you can display +perfectly formatted mathematical formulae. + +However, MathJax distribution is very large and because of the size is not +shipped with Askbot. + +To enable MathJax on your site, three things need to be done: + +* download MathJax to some directory on your server +* edit webserver configuration so that url `http://example.com/mathjax` + points to that directory and file `MathJax.js` is available at + `http://example.com/mathjax/MathJax.js`. For Apache, a following line + in the apache configuration file (maybe a VirtualHost section) will do:: + + Alias /mathjax/ /filesystem/path/to/mathjax/ + +* in Askbot "settings" -> "Optional components", check "Enable MathJax" and + enter url `http://example.com/mathjax` + +Note: your actual forum site must in this case be available at `http://example.com`. +It is **very important** to serve MathJax media **from the same domain**, otherwise +mathematics rendering will be very slow in Firefox and some other browsers (those +using the "same origin" policy for the HTTP cookies - MathJax does use sookies to +store some Math display settings) + +One day enabling MathJax will be even easier, but `some more work`_ needs to be done for this to happen. + +.. _MathJax: http://mathjax.org +.. _`some more work`: http://bugs.askbot.org/issues/27 |