Skip to content

Commit 6b88372

Browse files
Copilotleofang
andcommitted
Switch to nvidia-sphinx-theme and update version JSON format
Co-authored-by: leofang <5534781+leofang@users.noreply.github.com>
1 parent e7ee8f0 commit 6b88372

13 files changed

Lines changed: 122 additions & 343 deletions

File tree

cuda_bindings/docs/source/_static/javascripts/version_dropdown.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

cuda_bindings/docs/source/_templates/sidebar/variant-selector.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

cuda_bindings/docs/source/conf.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,17 @@
5959
# The theme to use for HTML and HTML Help pages. See the documentation for
6060
# a list of builtin themes.
6161
html_baseurl = "docs"
62-
html_theme = "furo"
63-
# html_theme = 'pydata_sphinx_theme'
62+
html_theme = "nvidia_sphinx_theme"
6463
html_theme_options = {
65-
"light_logo": "logo-light-mode.png",
66-
"dark_logo": "logo-dark-mode.png",
67-
# For pydata_sphinx_theme:
68-
# "logo": {
69-
# "image_light": "_static/logo-light-mode.png",
70-
# "image_dark": "_static/logo-dark-mode.png",
71-
# },
72-
# "switcher": {
73-
# "json_url": "https://nvidia.github.io/cuda-python/cuda-bindings/versions.json",
74-
# "version_match": release,
75-
# },
76-
## Add light/dark mode and documentation version switcher
77-
# "navbar_end": [
78-
# "search-button",
79-
# "theme-switcher",
80-
# "version-switcher",
81-
# "navbar-icon-links",
82-
# ],
64+
"switcher": {
65+
"json_url": "https://nvidia.github.io/cuda-python/cuda-bindings/versions.json",
66+
"version_match": release,
67+
},
68+
# Add light/dark mode and documentation version switcher
69+
"navbar_center": [
70+
"version-switcher",
71+
"navbar-nav",
72+
],
8373
}
8474
if os.environ.get("CI"):
8575
if int(os.environ.get("BUILD_PREVIEW", 0)):

cuda_bindings/docs/versions.json

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,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-
}
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_core/docs/source/_static/javascripts/version_dropdown.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

cuda_core/docs/source/_templates/sidebar/variant-selector.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

cuda_core/docs/source/conf.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,17 @@
5656
# The theme to use for HTML and HTML Help pages. See the documentation for
5757
# a list of builtin themes.
5858
html_baseurl = "docs"
59-
html_theme = "furo"
60-
# html_theme = 'pydata_sphinx_theme'
59+
html_theme = "nvidia_sphinx_theme"
6160
html_theme_options = {
62-
"light_logo": "logo-light-mode.png",
63-
"dark_logo": "logo-dark-mode.png",
64-
# For pydata_sphinx_theme:
65-
# "logo": {
66-
# "image_light": "_static/logo-light-mode.png",
67-
# "image_dark": "_static/logo-dark-mode.png",
68-
# },
69-
# "switcher": {
70-
# "json_url": "https://nvidia.github.io/cuda-python/cuda-core/versions.json",
71-
# "version_match": release,
72-
# },
73-
## Add light/dark mode and documentation version switcher
74-
# "navbar_end": [
75-
# "search-button",
76-
# "theme-switcher",
77-
# "version-switcher",
78-
# "navbar-icon-links",
79-
# ],
61+
"switcher": {
62+
"json_url": "https://nvidia.github.io/cuda-python/cuda-core/versions.json",
63+
"version_match": release,
64+
},
65+
# Add light/dark mode and documentation version switcher
66+
"navbar_center": [
67+
"version-switcher",
68+
"navbar-nav",
69+
],
8070
}
8171
if os.environ.get("CI"):
8272
if int(os.environ.get("BUILD_PREVIEW", 0)):

cuda_core/docs/versions.json

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,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-
}
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_python/docs/environment-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ dependencies:
1515
- scipy
1616
- sphinx <8.2.0
1717
- sphinx-copybutton
18-
- furo
1918
- myst-nb
2019
- enum_tools
2120
- sphinx-toolbox
2221
- pyclibrary
22+
- pip:
23+
- nvidia-sphinx-theme

0 commit comments

Comments
 (0)