Skip to content

Commit

Permalink
add dev option
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 c28c468 commit 466b81a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 466b81a

Please sign in to comment.