Skip to content

Commit

Permalink
Force zoom and Sankey hidden values globally
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Aug 13, 2024
1 parent 418cabb commit 964bb82
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@

# Always use the latest version of Mermaid.
mermaid_version = "latest"
# XXX Force hidding of Sankey values globally while we wait for in-place front-matter
# support: https://github.com/mgaitan/sphinxcontrib-mermaid/issues/147
mermaid_init_js = """
const config = {
startOnLoad: true,
sankey: {
width: 800,
height: 400,
showValues: false,
},
};
mermaid.initialize(config);
"""
mermaid_d3_zoom = True

master_doc = "index"

Expand Down
1 change: 0 additions & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,5 +368,4 @@ FYI, here is a graph of Python package dependencies:

```mermaid assets/dependencies.mmd
:align: center
:zoom:
```
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ One CLI to rule them all:

<!-- managers-sankey-start -->
```mermaid
---
config:
sankey:
showValues: false
---
sankey-beta
Meta Package Manager,apm,1
Expand Down

0 comments on commit 964bb82

Please sign in to comment.