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 d599b5412 test Artemis out-of-date doc warning
d599b5412 is described below

commit d599b541294672f3aee1724f66aa6e0c1aef0c43
Author: Justin Bertram <[email protected]>
AuthorDate: Tue May 20 09:18:46 2025 -0500

    test Artemis out-of-date doc warning
---
 .../documentation/2.40.0/address-model.html        | 26 +++++++++++++++++++++-
 .../documentation/latest/address-model.html        | 26 +++++++++++++++++++++-
 2 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/src/components/artemis/documentation/2.40.0/address-model.html 
b/src/components/artemis/documentation/2.40.0/address-model.html
index 68d431b7b..cb8d007af 100644
--- a/src/components/artemis/documentation/2.40.0/address-model.html
+++ b/src/components/artemis/documentation/2.40.0/address-model.html
@@ -10,6 +10,30 @@
 <link rel="stylesheet" href="css/asciidoctor.css">
 <link rel="stylesheet" href="css/font-awesome.css">
 <link rel="stylesheet" href="css/rouge-github.css">
+<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 = "Consider using 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 class="book toc2 toc-left">
 <div id="header">
@@ -768,4 +792,4 @@ If no <code>_AMQ_ROUTING_TYPE</code> is set then the 
message will be routed to a
 </div>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/src/components/artemis/documentation/latest/address-model.html 
b/src/components/artemis/documentation/latest/address-model.html
index 558d64cc4..ee7a42550 100644
--- a/src/components/artemis/documentation/latest/address-model.html
+++ b/src/components/artemis/documentation/latest/address-model.html
@@ -10,6 +10,30 @@
 <link rel="stylesheet" href="css/asciidoctor.css">
 <link rel="stylesheet" href="css/font-awesome.css">
 <link rel="stylesheet" href="css/rouge-github.css">
+<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 = "Consider using 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 class="book toc2 toc-left">
 <div id="header">
@@ -768,4 +792,4 @@ If no <code>_AMQ_ROUTING_TYPE</code> is set then the 
message will be routed to a
 </div>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>


---------------------------------------------------------------------
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