From 45bf34aceedaa58014979e83cd8e04c8dc49fe83 Mon Sep 17 00:00:00 2001 From: shaahji Date: Fri, 24 Apr 2026 13:43:34 -0700 Subject: [PATCH] Fix version switcher issues on GH docs page Root cause: versions.json was modified on release branch and the automation script even updated the local versions file to add the new version, however, the build configuration wasn't using the local file. The build was configured to use the file from last released version on GH. --- docs/source/_static/versions.json | 4 +++- docs/source/conf.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/source/_static/versions.json b/docs/source/_static/versions.json index 80a43f88f9..1f84d975d4 100644 --- a/docs/source/_static/versions.json +++ b/docs/source/_static/versions.json @@ -1,6 +1,8 @@ [ { "name": "dev (main)", "version": "main", "url": "https://microsoft.github.io/Olive/" }, - { "name": "0.10.1 (latest)", "version": "0.10.1", "url": "https://microsoft.github.io/Olive/0.10.1/" }, + { "name": "0.12.1 (latest)", "version": "0.12.1", "url": "https://microsoft.github.io/Olive/0.12.1/" }, + { "name": "0.12.0", "version": "0.12.0", "url": "https://microsoft.github.io/Olive/0.12.0/" }, + { "name": "0.10.1", "version": "0.10.1", "url": "https://microsoft.github.io/Olive/0.10.1/" }, { "name": "0.10.0", "version": "0.10.0", "url": "https://microsoft.github.io/Olive/0.10.0/" }, { "name": "0.9.3", "version": "0.9.3", "url": "https://microsoft.github.io/Olive/0.9.3/" }, { "name": "0.9.2", "version": "0.9.2", "url": "https://microsoft.github.io/Olive/0.9.2/" }, diff --git a/docs/source/conf.py b/docs/source/conf.py index cbad7fdf6a..f840e08ce6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -100,7 +100,7 @@ "**": ["page-toc"], }, "switcher": { - "json_url": "https://microsoft.github.io/Olive/_static/versions.json", + "json_url": "./_static/versions.json", "version_match": version, }, }