Skip to content

Commit

Permalink
Fix versions in switcher.json
Browse files Browse the repository at this point in the history
* Stable is now called stable (without version tag)
* Add colors to stable and dev versions in switcher
  • Loading branch information
aknierim committed Jul 19, 2023
1 parent c782ba0 commit 05cc382
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion docs/_static/ctapipe.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@
}
}

.version-switcher__container a[data-version-name*="stable"] {
background-color: #E9F6EC;
color: #28A745;
}

.version-switcher__container a[data-version-name*="dev"] {
background-color: #FDF4EB;
color: #EE9040;
}

html[data-theme="dark"] .version-switcher__container a[data-version-name*="stable"] {
background-color: #222924;
color: #28A745;
}

html[data-theme="dark"] .version-switcher__container a[data-version-name*="dev"] {
background-color: #332A21;
color: #EE9040;
}


/* sphinx-design */
.sd-card {
border-radius: 5px;
Expand Down Expand Up @@ -44,4 +65,3 @@
html[data-theme="dark"] .sd-shadow-sm {
--sd-color-shadow: #6e6e6e;
}

2 changes: 1 addition & 1 deletion docs/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://ctapipe.readthedocs.io/en/latest/"
},
{
"name": "v0.19.2 (stable)",
"name": "stable",
"version": "stable",
"url": "https://ctapipe.readthedocs.io/en/stable/"
},
Expand Down

0 comments on commit 05cc382

Please sign in to comment.