-
Notifications
You must be signed in to change notification settings - Fork 6
Add pan/zoom controls to Mermaid diagrams #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ on: | |
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| site_name: "BICAN Knowledge Graph Models Documentation" | ||
| site_url: https://brain-bican.github.io/models/ | ||
| theme: | ||
| name: material | ||
| palette: | ||
|
|
@@ -10,6 +11,11 @@ theme: | |
| plugins: | ||
| - search | ||
| - mermaid2 | ||
| - panzoom: | ||
| full_screen: true | ||
| always_show_hint: true | ||
| hint_location: "top" | ||
|
|
||
|
|
||
| nav: | ||
| - Overview: index.md | ||
|
|
@@ -25,4 +31,11 @@ nav: | |
| - Genome Annotation: genome_annotation.md | ||
| - Assertion Evidence: assertion_evidence.md | ||
| - BKE Taxonomy: bke_taxonomy.md | ||
| repo_url: https://github.com/brain-bican/models | ||
| repo_url: https://github.com/brain-bican/models | ||
|
|
||
| markdown_extensions: | ||
| - pymdownx.superfences: | ||
| custom_fences: | ||
| - name: mermaid | ||
| class: mermaid | ||
| format: !!python/name:pymdownx.superfences.fence_code_format | ||
|
Comment on lines
+37
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The use of |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,8 @@ test = [ | |
| ] | ||
| docs = [ | ||
| "mkdocs-material", | ||
| "mkdocs-mermaid2-plugin" | ||
| "mkdocs-mermaid2-plugin", | ||
| "mkdocs-panzoom-plugin" | ||
|
Comment on lines
+30
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ] | ||
|
|
||
| [project.urls] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plugin is a great addition for large diagrams. On a related note, as you correctly pointed out in the PR description, the
mermaid2plugin on line 13 is now redundant because you've enabled native Mermaid support viamarkdown_extensions. I recommend removing- mermaid2from the plugins list to simplify the configuration.