From 892255fd9d0fb1befca7a1313f7e55c0b4abc75a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 22 Jan 2018 14:16:55 +0100 Subject: [PATCH] site: enable the math-as-code fallback. --- site/pelicanconf.py | 7 +++++++ 1 file changed, 7 insertions(+) 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}/' -- 2.30.2