Skip to content

Commit

Permalink
update docs version switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelquast committed Aug 30, 2024
1 parent 4e6ba03 commit 3f81fe1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ def setup(app):
"api/reference": [],
}

version_match = eomaps.__version__
# version-switcher details
version_json = "https://eomaps.readthedocs.io/en/dev/_static/version_switcher.json"
version_match = os.environ.get("READTHEDOCS_VERSION")
if not version_match:
version_match = "latest"


html_theme_options = {
"collapse_navigation": False,
Expand All @@ -174,7 +179,7 @@ def setup(app):
},
],
"switcher": {
"json_url": "https://github.com/raphaelquast/EOmaps/blob/version_switcher/docs/docs_env.yml",
"json_url": version_json,
"version_match": version_match,
},
}
Expand Down

0 comments on commit 3f81fe1

Please sign in to comment.