Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ci/utils/update_doc_versions.py
Original file line number Diff line number Diff line change
@@ -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

"""
Expand Down Expand Up @@ -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,
}
Expand All @@ -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

Expand Down
8 changes: 6 additions & 2 deletions docs/cuopt/source/versions1.json
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down