diff --git a/CHANGES.rst b/CHANGES.rst index 9930cbd2a..52ff55668 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,9 @@ CHANGES Unreleased ---------- +- Add version chooser JavaScript helpers derived from ``pydata-sphinx-theme``. + Thanks, @drammock. + 2023/09/01 0.29.5 ----------------- diff --git a/src/crate/theme/rtd/crate/version_chooser.html b/src/crate/theme/rtd/crate/version_chooser.html index c09c1b1b2..cd4ba5510 100644 --- a/src/crate/theme/rtd/crate/version_chooser.html +++ b/src/crate/theme/rtd/crate/version_chooser.html @@ -1,6 +1,59 @@
+ + {% set url_path = theme_canonical_url_path.replace('en/latest/', '') %} + +
{{ current_version }} @@ -11,11 +64,11 @@
-
+
{% for slug, url in versions %} -

- {{ slug }} -

+ {% endfor %}