Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitm@lovullo.com>2015-04-16 13:34:35 -0400
committerMike Gerwitz <gerwitm@lovullo.com>2015-04-16 13:36:34 -0400
commit6f88551b6a37dc8191decdb26e127e7a7ba45f55 (patch)
tree4833ba4ea320531b86acce08b876459f5fb0ef6d /doc/Makefile.am
parent9b0512b0f42425d0f7301b46df861cfd6a9fa479 (diff)
downloadtame-6f88551b6a37dc8191decdb26e127e7a7ba45f55.tar.gz
tame-6f88551b6a37dc8191decdb26e127e7a7ba45f55.tar.bz2
tame-6f88551b6a37dc8191decdb26e127e7a7ba45f55.zip
HTML documentation now loads MathJax from CDN
Privacy warning: if scripts are enabled, then you are subject to the normal tracking risks of loading external scripts. If this is from your own domain or local filesystem, then you may be leaking personal information. In the future, KaTeX may be used.
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4c49224..6bd1f0c 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -35,5 +35,14 @@ xsltexis: $(stexi)
-xsl:"$(path_tools)/literate-xsl/src/texinfo.xsl" \
"$<" > "$@"
+# Privacy warning: if scripts are enabled, then you are subject to the
+# normal tracking risks of loading external scripts. If this is from your
+# own domain or local filesystem, then you may be leaking personal
+# information.
+html-local:
+ find tame.html/ -name '*.html' -type f \
+ | xargs sed -i \
+ 's#\(<script.*\)\?</body>#<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></body>#'
+
clean-local:
-rm -f $(stexi)