Skip to content

Commit e72b3ca

Browse files
authored
Add version to the nav title (#662)
1 parent 979de77 commit e72b3ca

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

spec/2021.12/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
from _array_api_conf import *
77

88
release = "2021.12"
9+
10+
nav_title = html_theme_options.get("nav_title") + " v{}".format(release)
11+
html_theme_options.update({"nav_title": nav_title})
12+
913
sys.modules["array_api"] = stubs_mod

spec/2022.12/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
from _array_api_conf import *
77

88
release = "2022.12"
9+
10+
nav_title = html_theme_options.get("nav_title") + " v{}".format(release)
11+
html_theme_options.update({"nav_title": nav_title})
912
sys.modules["array_api"] = stubs_mod

spec/draft/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
from _array_api_conf import *
77

88
release = "DRAFT"
9+
10+
nav_title = html_theme_options.get("nav_title") + " {}".format(release)
11+
html_theme_options.update({"nav_title": nav_title})
912
sys.modules["array_api"] = stubs_mod

0 commit comments

Comments
 (0)