You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I installed mkdocs and this plugin, however simple in nature, it didn't work for me.
I did some digging around and i found that while all seemed to be working fine the initializate function in the live-edit.js file was failing.
The problem is that this line:
I tested this by adding an else clause: if (article) { ... } else { alert("we got here."); }
mkdocs in version 1.6.1 apparently doesn't render that article element anymore.
For me i was able to fix this by changing the article line in the live-edit.js file into this:
With this in place it was properly showing the live edit control bar.
Just so you know this was with both plain vanilla mkdocs theme, as well as with the readthedocs theme. I do not know if that is of any consequence for the outcome.
Just for reference, this is how my mkdocs.yml file looks like:
Today I installed mkdocs and this plugin, however simple in nature, it didn't work for me.
I did some digging around and i found that while all seemed to be working fine the initializate function in the live-edit.js file was failing.
The problem is that this line:
I tested this by adding an else clause: if (article) { ... } else { alert("we got here."); }
mkdocs in version 1.6.1 apparently doesn't render that article element anymore.
For me i was able to fix this by changing the article line in the live-edit.js file into this:
With this in place it was properly showing the live edit control bar.
Just so you know this was with both plain vanilla mkdocs theme, as well as with the readthedocs theme. I do not know if that is of any consequence for the outcome.
Just for reference, this is how my mkdocs.yml file looks like:
The text was updated successfully, but these errors were encountered: