diff --git a/ci/utils/update_doc_versions.py b/ci/utils/update_doc_versions.py index fd064c4f3..8c8c29b6b 100644 --- a/ci/utils/update_doc_versions.py +++ b/ci/utils/update_doc_versions.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ @@ -41,7 +41,7 @@ def update_versions(version_file_path, versions_file_path): # Create new entry for the current version new_entry = { "version": version, - "url": f"../{version}/", + "url": f"https://docs.nvidia.com/cuopt/user-guide/{version}/", "name": "latest", "preferred": True, } @@ -52,6 +52,7 @@ def update_versions(version_file_path, versions_file_path): # Write updated versions back to file with open(versions_file_path, "w") as f: json.dump(versions, f, indent=2) + f.write("\n") return True diff --git a/docs/cuopt/source/versions1.json b/docs/cuopt/source/versions1.json index 12bebcd03..3e986996a 100644 --- a/docs/cuopt/source/versions1.json +++ b/docs/cuopt/source/versions1.json @@ -1,10 +1,14 @@ [ { - "version": "26.02.00", - "url": "https://docs.nvidia.com/cuopt/user-guide/26.02.00/", + "version": "26.04.00", + "url": "https://docs.nvidia.com/cuopt/user-guide/26.04.00/", "name": "latest", "preferred": true }, + { + "version": "26.02.00", + "url": "https://docs.nvidia.com/cuopt/user-guide/26.02.00/" + }, { "version": "25.12.00", "url": "https://docs.nvidia.com/cuopt/user-guide/25.12.00/"