diff --git a/docs/_static/switcher.json b/docs/_static/switcher.json index 17b9a8fba9..1024b9bafa 100644 --- a/docs/_static/switcher.json +++ b/docs/_static/switcher.json @@ -1,9 +1,18 @@ [ + { + "name": "dev", + "version": "dev", + "url": "https://docs.flyte.org/en/latest/" + }, { "name": "latest", "version": "latest", "url": "https://docs.flyte.org/en/latest/" }, + { + "version": "v1.13.2", + "url": "https://docs.flyte.org/en/v1.13.2" + }, { "version": "v1.13.1", "url": "https://docs.flyte.org/en/v1.13.1" diff --git a/docs/conf.py b/docs/conf.py index 8cf9499365..b2b03ed76b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -386,7 +386,10 @@ } json_url = "_static/switcher.json" -version_match = "latest" +version_match = os.environ.get("READTHEDOCS_VERSION") + +if not version_match: + version_match = "dev" html_theme_options = { # custom flyteorg pydata theme options