diff --git a/custom_plugin/constants.py b/custom_plugin/constants.py index 77571f87f4b..03544762798 100644 --- a/custom_plugin/constants.py +++ b/custom_plugin/constants.py @@ -37,25 +37,3 @@ ) """ - -# loop over all -# from index and TOC -# strip the OS from the href of all of them if the localstorage has select_OS defined -JS_OS_NEUTRAL = """ - -""" diff --git a/custom_plugin/custom_plugin.py b/custom_plugin/custom_plugin.py index fffd86faa4c..7f4fecca69d 100644 --- a/custom_plugin/custom_plugin.py +++ b/custom_plugin/custom_plugin.py @@ -14,7 +14,7 @@ from mkdocs.structure.pages import Page from yaml import safe_load -from constants import JS_SCROLL_STR, OS_PICK_BTN, OS_PICK_STR, JS_OS_NEUTRAL +from constants import JS_SCROLL_STR, OS_PICK_BTN, OS_PICK_STR """ See https://www.mkdocs.org/user-guide/plugins/#developing-plugins for some more information @@ -237,8 +237,6 @@ def on_post_page(self, output: str, page: Page, config: Config): """ if self.os_pick: output += JS_SCROLL_STR - if self.osneutrallinks: - output += JS_OS_NEUTRAL return output def on_post_build(self, config: Config):