Skip to content

Commit

Permalink
Merge pull request #30 from openradar/fix-version-switcher
Browse files Browse the repository at this point in the history
FIX: Update version switcher
  • Loading branch information
mgrover1 authored Jan 4, 2024
2 parents 234cc92 + 719422c commit a320967
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/source/_static/pst-versions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[
{
"version": "dev",
"url": "https://cmweather.readthedocs.io/en/dev"
"url": "https://cmweather.readthedocs.io/en/latest"
},
{
"version": "latest",
"url": "https://cmweather.readthedocs.io/en/latest/",
"version": "stable",
"url": "https://cmweather.readthedocs.io/en/stable/",
"is_latest": true
}
]
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
html_theme_options = {
'navbar_start': ['navbar-logo', 'version-switcher'],
'switcher': {
'json_url': 'https://raw.githubusercontent.com/mgrover1/cmweather/add-version-switcher/docs/source/_static/pst-versions.json',
'version_match': 'dev' if 'dev' in version else f'v{version}',
'json_url': 'https://cmweather.readthedocs.io/en/latest/_static/pst-versions.json',
'version_match': 'dev' if 'dev' in version else 'stable',
},
}

Expand Down

0 comments on commit a320967

Please sign in to comment.