Skip to content

Commit

Permalink
Update to mermaid 10.6.0, docs keyboard navigation (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Oct 28, 2023
1 parent b758aa1 commit 858d634
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# html_theme_options = {}
html_theme_options = {
# prefer browser defaults over custom JS keyboard event handlers
"navigation_with_keys": False,
}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
Expand Down
2 changes: 1 addition & 1 deletion nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class HTMLExporter(TemplateExporter):
).tag(config=True)

mermaid_js_url = Unicode(
"https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.5.0/mermaid.esm.min.mjs",
"https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.6.0/mermaid.esm.min.mjs",
help="""
URL to load MermaidJS from.
Expand Down
2 changes: 1 addition & 1 deletion share/templates/lab/mermaidjs.html.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- macro mermaid_js(
url="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.5.0/mermaid.esm.min.mjs"
url="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.6.0/mermaid.esm.min.mjs"
) -%}
<script type="module">
document.addEventListener("DOMContentLoaded", async () => {
Expand Down

0 comments on commit 858d634

Please sign in to comment.