Unverified Commit bb21847f authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

have sphinx configuration switch math formula renderer for epub

this still needs work, that has to be done after we switched to RST
parent 24b54026
Loading
Loading
Loading
Loading
+6 −1
Changes for doc/utils/sphinx-config/conf.py: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ import os
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.mathjax',
    'sphinx.ext.mathjax', 'sphinx.ext.imgmath'
]
# 2017-12-07: commented out, since this package is broken with Sphinx 16.x
#             yet we can no longer use Sphinx 15.x, since that breaks with
@@ -201,6 +201,11 @@ htmlhelp_basename = 'LAMMPSdoc'

html_add_permalinks = ''

if 'epub' in sys.argv:
  html_math_renderer = 'imgmath'
else:
  html_math_renderer = 'mathjax'

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {