Skip to content

Commit 76399c9

Browse files
Copilotleofang
andcommitted
Address PR feedback: Fix CI workflow and preserve original versions.json files
- Modify CI workflow to only comment out test-linux/test-windows in needs section instead of entire status check job - Revert all versions.json files to original format for backward compatibility - Create new nv-versions.json files with new format for nvidia-sphinx-theme - Update sphinx config files to reference new nv-versions.json files Co-authored-by: leofang <5534781+leofang@users.noreply.github.com>
1 parent 1a7c3c4 commit 76399c9

10 files changed

Lines changed: 131 additions & 105 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,14 @@ jobs:
108108
with:
109109
build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }}
110110

111-
# Temporarily disabled status check job as it depends on test jobs
112-
# checks:
113-
# name: Check job status
114-
# permissions:
115-
# checks: read
116-
# needs:
117-
# - build
118-
# - test-linux
119-
# - test-windows
120-
# - doc
121-
# secrets: inherit
122-
# uses: ./.github/workflows/status-check.yml
111+
checks:
112+
name: Check job status
113+
permissions:
114+
checks: read
115+
needs:
116+
- build
117+
# - test-linux # Temporarily disabled for documentation theme migration
118+
# - test-windows # Temporarily disabled for documentation theme migration
119+
- doc
120+
secrets: inherit
121+
uses: ./.github/workflows/status-check.yml
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[
2+
{
3+
"version": "latest",
4+
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/latest/"
5+
},
6+
{
7+
"version": "13.0.1",
8+
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.0.1/"
9+
},
10+
{
11+
"version": "13.0.0",
12+
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.0.0/"
13+
},
14+
{
15+
"version": "12.9.0",
16+
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.0/"
17+
},
18+
{
19+
"version": "12.8.0",
20+
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.8.0/"
21+
},
22+
{
23+
"version": "12.6.2",
24+
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.6.2/"
25+
},
26+
{
27+
"version": "12.6.1",
28+
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.6.1/"
29+
}
30+
]

cuda_bindings/docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
html_theme = "nvidia_sphinx_theme"
6363
html_theme_options = {
6464
"switcher": {
65-
"json_url": "https://nvidia.github.io/cuda-python/cuda-bindings/versions.json",
65+
"json_url": "https://nvidia.github.io/cuda-python/cuda-bindings/nv-versions.json",
6666
"version_match": release,
6767
},
6868
# Add light/dark mode and documentation version switcher

cuda_bindings/docs/versions.json

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,9 @@
1-
[
2-
{
3-
"version": "latest",
4-
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/latest/"
5-
},
6-
{
7-
"version": "13.0.1",
8-
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.0.1/"
9-
},
10-
{
11-
"version": "13.0.0",
12-
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.0.0/"
13-
},
14-
{
15-
"version": "12.9.0",
16-
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.0/"
17-
},
18-
{
19-
"version": "12.8.0",
20-
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.8.0/"
21-
},
22-
{
23-
"version": "12.6.2",
24-
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.6.2/"
25-
},
26-
{
27-
"version": "12.6.1",
28-
"url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.6.1/"
29-
}
30-
]
1+
{
2+
"latest" : "latest",
3+
"13.0.1" : "13.0.1",
4+
"13.0.0" : "13.0.0",
5+
"12.9.0" : "12.9.0",
6+
"12.8.0" : "12.8.0",
7+
"12.6.2" : "12.6.2",
8+
"12.6.1" : "12.6.1"
9+
}

cuda_core/docs/nv-versions.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[
2+
{
3+
"version": "latest",
4+
"url": "https://nvidia.github.io/cuda-python/cuda-core/latest/"
5+
},
6+
{
7+
"version": "0.3.2",
8+
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.3.2/"
9+
},
10+
{
11+
"version": "0.3.1",
12+
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.3.1/"
13+
},
14+
{
15+
"version": "0.3.0",
16+
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.3.0/"
17+
},
18+
{
19+
"version": "0.2.0",
20+
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.2.0/"
21+
},
22+
{
23+
"version": "0.1.1",
24+
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.1.1/"
25+
},
26+
{
27+
"version": "0.1.0",
28+
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.1.0/"
29+
}
30+
]

cuda_core/docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
html_theme = "nvidia_sphinx_theme"
6060
html_theme_options = {
6161
"switcher": {
62-
"json_url": "https://nvidia.github.io/cuda-python/cuda-core/versions.json",
62+
"json_url": "https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json",
6363
"version_match": release,
6464
},
6565
# Add light/dark mode and documentation version switcher

cuda_core/docs/versions.json

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,9 @@
1-
[
2-
{
3-
"version": "latest",
4-
"url": "https://nvidia.github.io/cuda-python/cuda-core/latest/"
5-
},
6-
{
7-
"version": "0.3.2",
8-
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.3.2/"
9-
},
10-
{
11-
"version": "0.3.1",
12-
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.3.1/"
13-
},
14-
{
15-
"version": "0.3.0",
16-
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.3.0/"
17-
},
18-
{
19-
"version": "0.2.0",
20-
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.2.0/"
21-
},
22-
{
23-
"version": "0.1.1",
24-
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.1.1/"
25-
},
26-
{
27-
"version": "0.1.0",
28-
"url": "https://nvidia.github.io/cuda-python/cuda-core/0.1.0/"
29-
}
30-
]
1+
{
2+
"latest" : "latest",
3+
"0.3.2" : "0.3.2",
4+
"0.3.1" : "0.3.1",
5+
"0.3.0" : "0.3.0",
6+
"0.2.0" : "0.2.0",
7+
"0.1.1" : "0.1.1",
8+
"0.1.0" : "0.1.0"
9+
}

cuda_python/docs/nv-versions.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[
2+
{
3+
"version": "latest",
4+
"url": "https://nvidia.github.io/cuda-python/latest/"
5+
},
6+
{
7+
"version": "13.0.1",
8+
"url": "https://nvidia.github.io/cuda-python/13.0.1/"
9+
},
10+
{
11+
"version": "13.0.0",
12+
"url": "https://nvidia.github.io/cuda-python/13.0.0/"
13+
},
14+
{
15+
"version": "12.9.0",
16+
"url": "https://nvidia.github.io/cuda-python/12.9.0/"
17+
},
18+
{
19+
"version": "12.8.0",
20+
"url": "https://nvidia.github.io/cuda-python/12.8.0/"
21+
},
22+
{
23+
"version": "12.6.2",
24+
"url": "https://nvidia.github.io/cuda-python/12.6.2/"
25+
},
26+
{
27+
"version": "12.6.1",
28+
"url": "https://nvidia.github.io/cuda-python/12.6.1/"
29+
}
30+
]

cuda_python/docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
html_theme = "nvidia_sphinx_theme"
5656
html_theme_options = {
5757
"switcher": {
58-
"json_url": "https://nvidia.github.io/cuda-python/versions.json",
58+
"json_url": "https://nvidia.github.io/cuda-python/nv-versions.json",
5959
"version_match": release,
6060
},
6161
# Add light/dark mode and documentation version switcher

cuda_python/docs/versions.json

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,9 @@
1-
[
2-
{
3-
"version": "latest",
4-
"url": "https://nvidia.github.io/cuda-python/latest/"
5-
},
6-
{
7-
"version": "13.0.1",
8-
"url": "https://nvidia.github.io/cuda-python/13.0.1/"
9-
},
10-
{
11-
"version": "13.0.0",
12-
"url": "https://nvidia.github.io/cuda-python/13.0.0/"
13-
},
14-
{
15-
"version": "12.9.0",
16-
"url": "https://nvidia.github.io/cuda-python/12.9.0/"
17-
},
18-
{
19-
"version": "12.8.0",
20-
"url": "https://nvidia.github.io/cuda-python/12.8.0/"
21-
},
22-
{
23-
"version": "12.6.2",
24-
"url": "https://nvidia.github.io/cuda-python/12.6.2/"
25-
},
26-
{
27-
"version": "12.6.1",
28-
"url": "https://nvidia.github.io/cuda-python/12.6.1/"
29-
}
30-
]
1+
{
2+
"latest" : "latest",
3+
"13.0.1" : "13.0.1",
4+
"13.0.0" : "13.0.0",
5+
"12.9.0" : "12.9.0",
6+
"12.8.0" : "12.8.0",
7+
"12.6.2" : "12.6.2",
8+
"12.6.1" : "12.6.1"
9+
}

0 commit comments

Comments
 (0)