Skip to content

Commit

Permalink
first pass at pydata switcher
Browse files Browse the repository at this point in the history
Signed-off-by: nikki everett <[email protected]>
  • Loading branch information
nikki everett committed Oct 14, 2024
1 parent a8b16a5 commit c28c468
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
31 changes: 31 additions & 0 deletions docs/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c28c468

Please sign in to comment.