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: v258-rc1~442^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F37663%2Fhead;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 --- 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( ""); } });