We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebf6d4d commit 16183e9Copy full SHA for 16183e9
docs/user/intro/mkdocs.rst
@@ -158,6 +158,13 @@ To integrate the :ref:`flyout-menu:Addons flyout menu` version menu into your si
158
</ul>
159
</div>`;
160
161
+ // Check if we already added versions and remove them if so.
162
+ // This happens when using the "Instant loading" feature.
163
+ // See https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#instant-loading
164
+ const currentVersions = document.querySelector(".md-version");
165
+ if (currentVersions !== null) {
166
+ currentVersions.remove();
167
+ }
168
document.querySelector(".md-header__topic").insertAdjacentHTML("beforeend", versioning);
169
});
170
0 commit comments