Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,10 @@ html.dark .only-light {
margin-bottom: 3em;
}

/* -----------------------------------------------------------------------------
Mermaid Diagrams (Dark Mode Fix)
----------------------------------------------------------------------------- */
html.dark .mermaid svg,
html[data-theme="dark"] .mermaid svg {
background-color: white;
padding: 1em;
border-radius: 8px;
/* Mermaid renders a native dark theme; Shibuya's inversion would undo it. */
html.dark pre.mermaid > svg,
html[data-theme="dark"] pre.mermaid > svg {
filter: none;
}

/* -----------------------------------------------------------------------------
Expand Down
21 changes: 8 additions & 13 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,14 @@


# Mermaid configuration
mermaid_version = "11.2.0"
mermaid_init_js = """
mermaid.initialize({
startOnLoad: true,
theme: 'default',
securityLevel: 'loose',
flowchart: {
useMaxWidth: true,
htmlLabels: true,
curve: 'basis'
}
});
"""
mermaid_version = "11.12.1"
mermaid_light_theme = "default"
mermaid_dark_theme = "dark"
mermaid_init_config = {
"startOnLoad": False,
"securityLevel": "loose",
"flowchart": {"useMaxWidth": True, "htmlLabels": True, "curve": "basis"},
}

html_theme_options = {
"logo_target": "/",
Expand Down