This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-website.git


The following commit(s) were added to refs/heads/main by this push:
     new bb9796cf4 test Artemis out-of-date warning on GitBook docs
bb9796cf4 is described below

commit bb9796cf4dd057ec5d7adbcde0772155c7573b5e
Author: Justin Bertram <[email protected]>
AuthorDate: Tue May 20 09:58:01 2025 -0500

    test Artemis out-of-date warning on GitBook docs
---
 .../artemis/documentation/2.0.0/address-model.html | 25 +++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/src/components/artemis/documentation/2.0.0/address-model.html 
b/src/components/artemis/documentation/2.0.0/address-model.html
index abb94a7b3..238911d33 100644
--- a/src/components/artemis/documentation/2.0.0/address-model.html
+++ b/src/components/artemis/documentation/2.0.0/address-model.html
@@ -61,7 +61,30 @@
     
     
     <link rel="prev" href="using-server.html" />
-    
+<script>
+document.addEventListener("DOMContentLoaded", function() {
+    var currentUrl = window.location.href;
+    console.log(currentUrl);
+    if (!currentUrl.includes("latest")) {
+        console.log("=== latest!");
+        var message = document.createElement("div");
+        message.style.margin = "20px";
+        message.style.textAlign = "center";
+        message.style.backgroundColor = "#FFFFE0";
+        message.textContent = "Please be aware that this documentation is 
out-of-date. ";
+
+        // Create a link
+        var link = document.createElement("a");
+        link.href = "../latest/" + 
currentUrl.substring(currentUrl.lastIndexOf('/') + 1);
+        link.textContent = "Here is the latest documentation.";
+
+        message.appendChild(link);
+
+        // Insert the message at the top of the body
+        document.body.insertBefore(message, document.body.firstChild);
+    }
+});
+</script>    
 
     </head>
     <body>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to