diff --git a/docs/_static/switcher.json b/docs/_static/switcher.json new file mode 100644 index 0000000000..17b9a8fba9 --- /dev/null +++ b/docs/_static/switcher.json @@ -0,0 +1,31 @@ +[ + { + "name": "latest", + "version": "latest", + "url": "https://docs.flyte.org/en/latest/" + }, + { + "version": "v1.13.1", + "url": "https://docs.flyte.org/en/v1.13.1" + }, + { + "version": "v1.13.0", + "url": "https://docs.flyte.org/en/v1.13.0" + }, + { + "version": "v1.12.0", + "url": "https://docs.flyte.org/en/v1.12.0" + }, + { + "version": "v1.11.0", + "url": "https://docs.flyte.org/en/v1.11.0" + }, + { + "version": "v1.10.7", + "url": "https://docs.flyte.org/en/v1.10.7" + }, + { + "version": "v1.10.6", + "url": "https://docs.flyte.org/en/v1.10.6" + } +] \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 316acc60be..8cf9499365 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -385,6 +385,9 @@ "doc_path": "docs", } +json_url = "_static/switcher.json" +version_match = "latest" + html_theme_options = { # custom flyteorg pydata theme options # "github_url": "https://github.com/flyteorg/flyte", @@ -415,8 +418,9 @@ } ], "use_edit_page_button": True, - "navbar_start": ["navbar-logo"], + "navbar_start": ["navbar-logo", "version-switcher"], "secondary_sidebar_items": ["page-toc", "edit-this-page"], + "switcher": {"json_url": json_url, "version_match": version_match} } # Add any paths that contain custom static files (such as style sheets) here,