kaputtnik has proposed merging lp:~widelands-dev/widelands-website/mathjax_for_documentation into lp:widelands-website.
Requested reviews: Widelands Developers (widelands-dev) For more details, see: https://code.launchpad.net/~widelands-dev/widelands-website/mathjax_for_documentation/+merge/326800 Fix for displaying formulas when switching to mathjax for the sphinx documentation. Should be merged if https://code.launchpad.net/~widelands-dev/widelands/codecheck/+merge/326647 is merged. -- Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands-website/mathjax_for_documentation into lp:widelands-website.
=== modified file 'templates/sphinxdoc/base.html' --- templates/sphinxdoc/base.html 2015-02-18 22:30:08 +0000 +++ templates/sphinxdoc/base.html 2017-07-04 19:16:39 +0000 @@ -6,6 +6,12 @@ {% block extra_head %} <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/documentation.css" /> + +{# using mathjax for formulas #} +<script type="text/javascript" async + src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"> +</script> + {{ block.super}} {% endblock %}
_______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp