From 05cc382a78bf7717e175deb0904928aee4b4ba1f Mon Sep 17 00:00:00 2001 From: Anno Knierim Date: Wed, 19 Jul 2023 15:41:28 +0200 Subject: [PATCH] Fix versions in switcher.json * Stable is now called stable (without version tag) * Add colors to stable and dev versions in switcher --- docs/_static/ctapipe.css | 22 +++++++++++++++++++++- docs/_static/switcher.json | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/docs/_static/ctapipe.css b/docs/_static/ctapipe.css index 243e4af60cd..30483b997f2 100644 --- a/docs/_static/ctapipe.css +++ b/docs/_static/ctapipe.css @@ -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; @@ -44,4 +65,3 @@ html[data-theme="dark"] .sd-shadow-sm { --sd-color-shadow: #6e6e6e; } - diff --git a/docs/_static/switcher.json b/docs/_static/switcher.json index 59a6b3a5637..f2c980b19f7 100644 --- a/docs/_static/switcher.json +++ b/docs/_static/switcher.json @@ -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/" },