From 858d63400123ea74f276ddc78f2526a63bcd36b5 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 28 Oct 2023 15:34:42 -0500 Subject: [PATCH] Update to mermaid 10.6.0, docs keyboard navigation (#2058) --- docs/source/conf.py | 5 ++++- nbconvert/exporters/html.py | 2 +- share/templates/lab/mermaidjs.html.j2 | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index f5f9f10af..b8c413bf3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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()] diff --git a/nbconvert/exporters/html.py b/nbconvert/exporters/html.py index 12024adb9..97501ffe3 100644 --- a/nbconvert/exporters/html.py +++ b/nbconvert/exporters/html.py @@ -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. diff --git a/share/templates/lab/mermaidjs.html.j2 b/share/templates/lab/mermaidjs.html.j2 index 424a8ed99..9fd3c9163 100644 --- a/share/templates/lab/mermaidjs.html.j2 +++ b/share/templates/lab/mermaidjs.html.j2 @@ -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" ) -%}