Skip to content

Commit 12b8a53

Browse files
Enable MathJax and GraphViz
1 parent 4c6fb4b commit 12b8a53

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/source/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@
9696
# 'sphinx.ext.doctest', # numpy
9797
"sphinx.ext.autosummary", # For summarizing autodoc-generated files
9898
"sphinx.ext.extlinks", # For shortening internal links
99-
# 'sphinx.ext.graphviz', # numpy
99+
"sphinx.ext.graphviz", # Draw Graphs in docs
100100
# 'sphinx.ext.ifconfig', # numpy
101101
# 'matplotlib.sphinxext.plot_directive', # numpy
102102
# 'IPython.sphinxext.ipythoGn_console_highlighting', # numpy
103103
# 'IPython.sphinxext.ipython_directive', # numpy
104-
# 'sphinx.ext.imgmath', # numpy
104+
"sphinx.ext.mathjax", # Render math with mathjax
105105
"sphinx_rtd_theme", # Theme
106106
"recommonmark", # For markdown support, does not support 'full' CommonMark syntax (yet)!
107107
]
@@ -347,6 +347,11 @@
347347
# "jintrac": ("https://users.euro-fusion.org/pages/data-cmg/wiki/", None) Behind password, so cannot link there
348348
}
349349

350+
# Configuration of sphinx.ext.graphviz
351+
# See https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html
352+
353+
# Configuration of sphinx.ext.mathjax
354+
# See https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax
350355

351356
def escape_underscores(string):
352357
return string.replace("_", r"\_")

0 commit comments

Comments
 (0)