From cfd31cf653baff3c21ecc19f81e4879c9b80ae53 Mon Sep 17 00:00:00 2001 From: Manolis Papadakis Date: Mon, 14 Sep 2026 16:49:07 -0700 Subject: [PATCH] Mark 26.06 as last release in docs --- docs/legate/source/conf.py | 20 ++++++++------------ docs/legate/switcher.json | 5 ----- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/docs/legate/source/conf.py b/docs/legate/source/conf.py index 39b55d4b1a..4df48568af 100644 --- a/docs/legate/source/conf.py +++ b/docs/legate/source/conf.py @@ -16,16 +16,14 @@ from os import getenv from typing import Any -import legate - SWITCHER_PROD = "https://docs.nvidia.com/legate/switcher.json" SWITCHER_DEV = "http://localhost:8000/legate/switcher.json" JSON_URL = SWITCHER_DEV if getenv("SWITCHER_DEV") == "1" else SWITCHER_PROD ANNOTATE = getenv("LEGATE_ANNOTATION_DOCS") == "1" -# This is the "YY.MM" version string that we want users to see -BASE_VERSION = ".".join(legate.__version__.split(".", 2)[:2]) +# This final documentation snapshot always displays the final release line. +BASE_VERSION = "26.06" # make sure BASE VERSION is formatted as expected _yy, _mm = BASE_VERSION.split(".") @@ -38,14 +36,7 @@ copyright = f"2021-{datetime.now().year}, NVIDIA" # noqa: A001 author = "NVIDIA Corporation" -if "dev" in legate.__version__ or "rc" in legate.__version__: - # for dev/rc versions just use the entire version with everything, and - # add it to the page title as well, for easy recognition - version = release = legate.__version__ - project += f" ({legate.__version__})" -else: - # otherwise, we actually only want the YY.MM to be visible for releases - version = release = BASE_VERSION +version = release = BASE_VERSION # -- General configuration --------------------------------------------------- @@ -84,6 +75,11 @@ html_theme = "nvidia_sphinx_theme" html_theme_options = { + "announcement": ( + "This project has reached end of life and is no longer maintained or " + "supported. The final release is 26.06.01. This " + "documentation is retained for historical reference." + ), "switcher": { "json_url": JSON_URL, "navbar_start": ["navbar-logo", "version-switcher"], diff --git a/docs/legate/switcher.json b/docs/legate/switcher.json index b568b146da..182bdf345c 100644 --- a/docs/legate/switcher.json +++ b/docs/legate/switcher.json @@ -54,10 +54,5 @@ "preferred": true, "url": "https://docs.nvidia.com/legate/26.06/", "version": "26.06" - }, - { - "name": "dev", - "url": "https://nv-legate.github.io/legate/", - "version": "dev" } ]