Skip to content

Commit 614e718

Browse files
committed
Update docs build - disable mermaid when using latex
1 parent e9e84ea commit 614e718

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@
2323
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
2424
# pixels large.
2525
html_favicon = "_static/favicon.ico"
26+
27+
# -- Logic to disable mermaid for LaTeX output -----------------------------
28+
# The 'tags' object is automatically provided by Sphinx.
29+
tags = globals().get("tags")
30+
if tags and tags.has("latex"):
31+
# The sphinx-mermaid extension is not compatible with the LaTeX builder
32+
extensions.remove("sphinx_mermaid")

0 commit comments

Comments
 (0)