From 90b0222091e23ed21ecf7dacc9f885e72bcdfdc5 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 30 May 2025 02:03:08 +0100 Subject: [PATCH] sync-docs: add '(latest stable)' next to the latest version in the menu Add visual indicator of what is the latest version in the version menu --- tools/sync-docs.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/sync-docs.py b/tools/sync-docs.py index 0a14108bfc0..ce10b1b4449 100755 --- a/tools/sync-docs.py +++ b/tools/sync-docs.py @@ -24,12 +24,17 @@ $(document).ready(function() { var items = []; $.each( data, function(_, version) { + if (version == data[1]) { + latest = " (latest stable)"; + } else { + latest = ""; + } if (version == dirname) { - items.push( ""); + items.push( ""); } else if (dirname == "latest" && version == data[1]) { - items.push( ""); + items.push( ""); } else { - items.push( ""); + items.push( ""); } }); -- 2.47.3