question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for navigation.instant option of material theme

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
squidfunkcommented, Jul 26, 2021

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.

1reaction
fralaucommented, Jun 10, 2021

@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). 🙂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found