From 6f6f20a4241df7ab56f69f9b9a85ca1f361bba18 Mon Sep 17 00:00:00 2001 From: StoneT2000 Date: Wed, 21 Aug 2024 21:27:12 -0700 Subject: [PATCH] [Docs] disable version warning banner as it is bugged --- docs/source/conf.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 8513f6161..39a52ca8a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -53,10 +53,11 @@ html_favicon = "_static/favicon.svg" -json_url = "https://maniskill.readthedocs.io/en/latest/_static/version_switcher.json" -version_match = "latest" #os.environ.get("READTHEDOCS_VERSION") -release = __version__ - +# json_url = "https://maniskill.readthedocs.io/en/latest/_static/version_switcher.json" +json_url = "_static/version_switcher.json" +version_match = os.environ.get("READTHEDOCS_VERSION") +if version_match is None: + version_match = "v" + __version__ html_theme_options = { "use_edit_page_button": True, "icon_links": [ @@ -78,7 +79,7 @@ "image_dark": "_static/logo_white.svg", }, "navbar_center": ["version-switcher", "navbar-nav"], - "show_version_warning_banner": True, + "show_version_warning_banner": False, "switcher": { "json_url": json_url, "version_match": version_match,