diff --git a/docs/source/conf.py b/docs/source/conf.py index 8b7798800a1..bd143887a04 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -331,10 +331,12 @@ switcher_version = version if ".dev" in version: switcher_version = "dev/" + json_url = "https://arrow.apache.org/docs/_static/versions.json" else: # If we are not building dev version of the docs, we are building # docs for the stable version switcher_version = "" + json_url = "/docs/_static/versions.json" html_theme_options = { "show_toc_level": 2, @@ -365,7 +367,7 @@ ], "show_version_warning_banner": True, "switcher": { - "json_url": "/docs/_static/versions.json", + "json_url": json_url, "version_match": switcher_version, }, }