diff --git a/tools/sync-docs.py b/tools/sync-docs.py
index 0a14108bfc..ce10b1b444 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 == dirname) {
- items.push( "");
- } else if (dirname == "latest" && version == data[1]) {
- items.push( "");
+ if (version == data[1]) {
+ latest = " (latest stable)";
} else {
- items.push( "");
+ latest = "";
+ }
+ if (version == dirname) {
+ items.push( "");
+ } else if (dirname == "latest" && version == data[1]) {
+ items.push( "");
+ } else {
+ items.push( "");
}
});