mbox series

[v2,0/4] Rework the logic of the switcher menu and improve it

Message ID 20260223-fix-switchers-js-v2-0-296523996600@bootlin.com
Headers show
Series Rework the logic of the switcher menu and improve it | expand

Message

Antonin Godard Feb. 23, 2026, 10:57 a.m. UTC
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
Changes in v2:
- Rework the switcher, now only display branch tips in the menu.
- Add the commit id/tag in the footer.
- Link to v1: https://patch.msgid.link/20260212-fix-switchers-js-v1-0-16d95c74c328@bootlin.com

---
Antonin Godard (4):
      set_versions.py: remove duplicate and unneeded logic
      switchers.js: rework the logic and improve it
      set_versions.py: set a more accurate DISTRO value
      _templates/footer.html: show a dynamically created id of the docs

 documentation/_templates/footer.html        |   2 +-
 documentation/set_versions.py               | 186 ++++++++++++++++------------
 documentation/sphinx-static/switchers.js.in | 155 ++++++++++++++++-------
 3 files changed, 220 insertions(+), 123 deletions(-)
---
base-commit: 98840d241c681c5bd4080db57b3bd9d9f0740b94
change-id: 20260206-fix-switchers-js-18626c7a834c