Skip to content

Commit 2be5286

Browse files
authored
add version selector (#243)
1 parent 62a6851 commit 2be5286

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888

8989
html_domain_indices = False
9090
html_use_index = False
91+
html_extra_path = ["project.json", "versions1.json"]
9192
highlight_language = "console"
9293

9394
html_theme_options = {
@@ -105,8 +106,14 @@
105106
"type": "fontawesome",
106107
},
107108
],
109+
"switcher": {
110+
"json_url": "../versions1.json",
111+
"version_match": release,
112+
},
108113
}
109114

115+
html_baseurl = "https://docs.nvidia.com/openshell/latest/"
116+
110117
json_output_settings = {
111118
"enabled": True,
112119
"verbose": True,

docs/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "name": "openshell", "version": "0.1.0" }

docs/versions1.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"preferred": true,
4+
"version": "0.1.0",
5+
"url": "../0.1.0/"
6+
}
7+
]

0 commit comments

Comments
 (0)