Support for navigation.instant option of material theme
See original GitHub issueHi,
with the navigation.instant
option of the material theme enabled no diagrams are rendered, only after reloading a page.
The mathjax part of the documentation ( https://squidfunk.github.io/mkdocs-material/reference/mathjax/ ) actually contains a snippet which seems to be related:
document$.subscribe(() => {
MathJax.typesetPromise()
})
Maybe something similar is possible for mermaid? The mermaid.initialize(...)
snipped probably needs to be tweaked as well since only parts of a page re replaced with the instant navigation option.
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Setting up navigation - Material for MkDocs - GitHub Pages
Material for MkDocs provides a multitude of options to configure the behavior of navigational elements, ... theme: features: - navigation.instant.
Read more >What's new? - Material Theme UI Documentation
The Material Theme plugin is a plugin for JetBrains IDEs (IntelliJ, PhpStorm, WebStorm, Android Studio, etc...) which completely redesigns the UI with a ......
Read more >Understanding navigation - Material Design
Navigation enables users to move through an app. ... Their location, visibility, and persistence across screens allow quick pivoting between destinations.
Read more >Material Design 2 in Compose - Jetpack - Android Developers
This approach makes it possible to easily support dark theme and nested themes. ... Setting different background colors produces different text and icon ......
Read more >Setting up navigation - Javier Antó
theme : features: - navigation.instant. The resulting page is parsed and injected and ... Material for MkDocs is the only MkDocs theme offering...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the mention. Material for MkDocs already supports Mermaid.js natively, together with instant loading, dark mode, custom fonts, and custom colors. I don’t see why a PR would be necessary. We already have a zero effort out-of-the-box solution in place.
@squidfunk : I agree: the “home baking” approach might be the best approach for this requirement, rather than an off-the-shelf package. Especially since we have your nicely prepared toolkit (Material). 🙂