From ba7df6bc824069b42f730754385732c770182b38 Mon Sep 17 00:00:00 2001 From: Max Grover Date: Thu, 4 Jan 2024 15:42:17 -0600 Subject: [PATCH 1/2] Update version switcher Update the version switcher to capture the proper tags --- docs/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index bdf3ef7..01731e1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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', }, } From 719422c3f20136e5635322a6dab9868980fce18f Mon Sep 17 00:00:00 2001 From: mgrover1 Date: Thu, 4 Jan 2024 15:44:52 -0600 Subject: [PATCH 2/2] ADD: Add updated versions --- docs/source/_static/pst-versions.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/_static/pst-versions.json b/docs/source/_static/pst-versions.json index 74b3a4b..07b10e3 100644 --- a/docs/source/_static/pst-versions.json +++ b/docs/source/_static/pst-versions.json @@ -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 } ]