Skip to content

Commit a99d46b

Browse files
implemented version toggler to navbar, check references when live
1 parent 54ec416 commit a99d46b

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/doc/generated/
77
/doc/auto_examples/
88
/doc/sg_execution_times.rst
9+
/doc/.DS_Store
910

1011
__pycache__
1112
__cache__

doc/.DS_Store

-6 KB
Binary file not shown.

doc/_static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ code {
8888

8989

9090
/* Force breakpoint in navbar earlier, attention: need to change if navbar titles are changed*/
91-
@media (max-width: 1104px) {
91+
@media (max-width: 1177px) {
9292
.bd-header .navbar-expand-lg {
9393
flex-direction: column !important;
9494
}

doc/_static/switcher.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
{
3+
"version": "0.3.1",
4+
"name": "0.3.1",
5+
"url": "/skglm/stable/"
6+
},
7+
{
8+
"version": "dev",
9+
"name": "0.5",
10+
"url": "/skglm/",
11+
"preferred": true
12+
}
13+
]

doc/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,14 @@
148148
"type": "fontawesome",
149149
},
150150
],
151-
"navbar_end": ["navbar-icon-links"],
151+
"navbar_end": [
152+
"navbar-icon-links",
153+
"version-switcher",
154+
],
155+
"switcher": {
156+
"json_url": "/_static/switcher.json",
157+
"version_match": "stable" if is_stable_doc else "dev",
158+
},
152159
"navigation_with_keys": True,
153160
"search_bar_text": "Search skglm docs...",
154161
"footer_icons": [

0 commit comments

Comments
 (0)