From: Luca Boccassi Date: Fri, 30 May 2025 01:03:08 +0000 (+0100) Subject: sync-docs: add '(latest stable)' next to the latest version in the menu X-Git-Tag: v257.7~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b4abc331415147e00fbbdef5dbf7282f44f970b;p=thirdparty%2Fsystemd.git 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 (cherry picked from commit 90b0222091e23ed21ecf7dacc9f885e72bcdfdc5) --- 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( ""); } });