-
Notifications
You must be signed in to change notification settings - Fork 6
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
When changin pages in navigation, diagram is not loading again #10
Comments
Confirming this issue. Navigating to page and it doesn't load draw.io diagrams, no errors in the network logs in Chrome, it just stops. Refreshing, or going to page link directly and it works. We are also using mkdocs-material. |
We have narrowed down the issue, the problem is due to Javascript not loading on mkdocs-material's Disabling The proposed worked around mentioned in the above issue is to wrap JavaScript in the following: document$.subscribe(function() {
console.log("Put your code here") // Executes on `DOMContentLoaded` and on instant navigation
}) Possibly something which could be incorporated somehow here. |
I was in touch with Sergey the original author and he will not maintain this repo / package anymore. It has been replaced by my fork a while ago https://github.com/tuunit/mkdocs-drawio Please read the Readme on how to support instant loading and the material design. We have a working setup for instant loading inside the examples directory as well. |
Thanks @tuunit, we'll look at https://github.com/tuunit/mkdocs-drawio then and most likely move over to that one. |
I have issue with this plugin. When I change page via navigation menu the diagram is not loaded. When entering page for the first time(or refreshing) the diagram is loading.
My mkdocs are using material theme.
Page with problem Page and Source
The text was updated successfully, but these errors were encountered: