Skip to content

Update sphinxcontrib-mermaid requirement from <2.2,>=2.0.0rc0 to >=2.0.0rc0,<3.1 in the python group - #176

Merged
python-templates-automerge[bot] merged 1 commit into
mainfrom
dependabot/pip/python-e31daf1209
Dec 1, 2026
Merged

python-templates-automerge[bot] merged 1 commit into
mainfrom
dependabot/pip/python-e31daf1209

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on sphinxcontrib-mermaid to permit the latest version.
Updates sphinxcontrib-mermaid to 3.0.0a1

Changelog

Sourced from sphinxcontrib-mermaid's changelog.

3.0.0a1 (November 14, 2026)

  • Add PEP 561 typing metadata and annotations for public extension APIs, including the Mermaid node, directives, visitors, and setup function (#266, #267)
  • Color diagrams from the Furo, pydata-sphinx-theme, sphinx-fuma, and sphinxawesome-theme palettes when using the default Mermaid themes (#280)
  • Skip LaTeX PDF cropping when Mermaid rendering produces no output (#267)
  • Make pie, mindmap, timeline, treemap, radar, kanban, sankey, and ZenUML diagrams readable in dark mode (#280)

3.0.0a0 (November 14, 2026)

Breaking changes:

  • Replace the templated inline JavaScript with a bundled TypeScript runtime loaded from _static; diagram options and site settings are written as escaped JSON instead of inline script (CSP-compatible, #222, #255)
  • Bundle Mermaid 12.2.0, ZenUML, and the tidy-tree layout in the package; mermaid_base_url loads them from any npm CDN or a local node_modules copy instead (#29, #64, #110, #114)
  • Mermaid 12 includes the ELK layouts and uses ELK as its default layout, so flowcharts may lay out differently than in 2.x (#207, #269)
  • Remove mermaid_init_config, mermaid_d3_zoom, d3_version, d3_use_local, the mermaid_include_elk/mermaid_elk_* and mermaid_include_zenuml/mermaid_zenuml_* settings, mermaid_fullscreen_button, mermaid_fullscreen_button_opacity, mermaid_js_priority, mermaid_include_mindmap, and mermaid_use_local; each now raises an error naming its replacement
  • Pass mermaid_config to mermaid.initialize instead of copying it into each diagram's frontmatter
  • mermaid_version only applies with a remote mermaid_base_url and must be 12.0.0 or later
  • Render diagrams into <div class="mermaid-diagram">; drop the fixed 500px height
  • Replace window.runMermaid with window.sphinxcontribMermaid.render(); expose the Mermaid module as window.mermaid (#233)
  • Require Sphinx 7.4; building from source requires Node.js 22+ and pnpm

New:

  • Size diagrams to keep text readable, with a capped scrolling view for oversized diagrams, fit: contain, and per-diagram width/height; set site-wide defaults with mermaid_fit, mermaid_max_height, and mermaid_min_font_scale (#123, #104, #251)
  • Accept sizing and interaction options as top-level frontmatter keys as well as directive options
  • Built-in pan and zoom (drag, Ctrl/⌘+wheel, pinch, keyboard) without d3, enabled with mermaid_zoom (#178)
  • Toolbar with zoom and fullscreen buttons, always visible or shown on hover (mermaid_toolbar, #224)
  • Fullscreen overlay with pan and zoom
  • Follow light and dark mode in Furo, pydata-sphinx-theme, sphinx-fuma, and sphinxawesome-theme; an explicit Mermaid theme is never overridden (#228, #163, #205)
  • mermaid_extensions registers external diagrams and layouts from ES modules
  • :config: accepts YAML, and nested frontmatter works in MyST fences (#186)
  • Render diagrams in hidden tabs and slides when they become visible (#126, #238)
  • Parse diagram source from text content, so search highlighting no longer breaks diagrams (#136)
  • Resolve local asset paths correctly from pages at any depth (#246)
  • Apply width/height and mermaid_config to mermaid-cli output

Fixed:

  • Skip the LaTeX Mermaid node after warning when the configured mermaid_pdfcrop executable is missing (#272)

2.1.1 (July 19, 2026)

  • Preserve source metadata on generated Mermaid caption nodes so Sphinx extracts them into gettext catalogs and applies normal caption translations
  • Pass the existing mermaid image class through the HTML visitor so PNG output can be targeted consistently with CSS

2.1.0 (July 18, 2026)

  • Add mermaid_config option for passing a global Mermaid configuration (#215)
  • Load the ZenUML plugin lazily, only on pages that contain a ZenUML diagram, and confine its injected stylesheet to the diagram subtree so it no longer restyles the host theme (#252)
  • Skip injecting the Mermaid JavaScript when the output format does not support it (#253)

... (truncated)

Commits
  • 3b75f71 Bump to 3.0.0a1
  • 279d0d3 Merge pull request #280 from mgaitan/tkp/dark-mode-theme-colors
  • ddf20e1 Match diagram colors to the Sphinx theme and fix dark mode
  • ef9a920 Merge pull request #267 from adamtheturtle/fix/pep561-typing
  • 1c0e0ae Merge pull request #279 from mgaitan/tkp/changelog-3.0.0a0
  • edc42af Fill in missing 3.0.0a0 changelog entries
  • b2e354c Test that a missing mmdc skips the LaTeX node when pdfcrop is set
  • 699cda2 Drop pyright and fold typing stubs into develop
  • 6c4d2f4 Provide PEP 561 typing metadata and public API annotations
  • 26c43ca Bump to 3.0.0a0
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Updates the requirements on [sphinxcontrib-mermaid](https://github.com/mgaitan/sphinxcontrib-mermaid) to permit the latest version.

Updates `sphinxcontrib-mermaid` to 3.0.0a1
- [Changelog](https://github.com/mgaitan/sphinxcontrib-mermaid/blob/master/CHANGELOG.md)
- [Commits](mgaitan/sphinxcontrib-mermaid@2.0.0rc0...3.0.0a1)

---
updated-dependencies:
- dependency-name: sphinxcontrib-mermaid
  dependency-version: 3.0.0a1
  dependency-type: direct:production
  dependency-group: python
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added lang: python PRs or issues related to Python part: dependencies PRs or issues related to dependencies labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Test Results

157 tests  ±0   157 ✅ ±0   31s ⏱️ -4s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit b2fb6ca. ± Comparison against base commit 2ecfde3.

@timkpaine timkpaine added the tag: automerge Automatically merge this PR when status checks pass label Dec 1, 2026
@python-templates-automerge
python-templates-automerge Bot merged commit 4eae08f into main Dec 1, 2026
2 checks passed
@python-templates-automerge
python-templates-automerge Bot deleted the dependabot/pip/python-e31daf1209 branch December 1, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang: python PRs or issues related to Python part: dependencies PRs or issues related to dependencies tag: automerge Automatically merge this PR when status checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant