From: Vladimír Vondruš Date: Mon, 22 Jan 2018 13:16:55 +0000 (+0100) Subject: site: enable the math-as-code fallback. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=892255fd9d0fb1befca7a1313f7e55c0b4abc75a;p=blog.git site: enable the math-as-code fallback. --- diff --git a/site/pelicanconf.py b/site/pelicanconf.py index 120dce4c..18755760 100644 --- a/site/pelicanconf.py +++ b/site/pelicanconf.py @@ -22,6 +22,9 @@ # DEALINGS IN THE SOFTWARE. # +import shutil +import logging + AUTHOR = 'Vladimír VondruÅ¡' M_SITE_LOGO_TEXT = 'm.css' @@ -161,6 +164,10 @@ M_HTMLSANITY_HYPHENATION = True M_DOX_TAGFILES = [ ('../doc/doxygen/corrade.tag', 'http://doc.magnum.graphics/corrade/', ['Corrade::'])] +if not shutil.which('latex'): + logging.warning("LaTeX not found, fallback to rendering math as code") + M_MATH_RENDER_AS_CODE = True + DIRECT_TEMPLATES = ['archives'] PAGE_URL = '{slug}/'