Skip to content

Commit

Permalink
fix: add option to compile latex maths with latex in path
Browse files Browse the repository at this point in the history
  • Loading branch information
adamingas committed Jan 17, 2024
1 parent ac5bf26 commit a437b5b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import os

project = "OrdinalGBT"
copyright = "2023, Adamos Spanashis"
Expand All @@ -19,14 +20,17 @@
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx_rtd_theme",
"sphinx.ext.mathjax"
]
if os.environ.get('NO_MATHJAX',False):
extensions.append( "sphinx.ext.imgmath")
imgmath_latex_preamble = "\\usepackage{amsmath}"
else:
extensions.append( "sphinx.ext.mathjax")
mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
autoapi_dirs = ["../ordinalgbt"] # location to parse for API reference
html_theme = "sphinx_rtd_theme"
exclude_patterns = []
nb_execution_mode = "off"
mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

Expand Down

0 comments on commit a437b5b

Please sign in to comment.