chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2639bdb
)
site: enable the math-as-code fallback.
author
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 22 Jan 2018 13:16:55 +0000
(14:16 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 22 Jan 2018 13:17:29 +0000
(14:17 +0100)
site/pelicanconf.py
patch
|
blob
|
history
diff --git
a/site/pelicanconf.py
b/site/pelicanconf.py
index 120dce4c048d49c47485fd5c80e4242dd1d8ecef..18755760b9f9c69aead35a20f76f53fead8be3cd 100644
(file)
--- 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}/'