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 dc08fff78 ARTEMIS-615 remove duplicate prompts
dc08fff78 is described below

commit dc08fff78e8082c695a19cb631af6870fc92adbe
Author: Justin Bertram <[email protected]>
AuthorDate: Tue May 27 15:06:45 2025 -0500

    ARTEMIS-615 remove duplicate prompts
---
 .../artemis/documentation/2.0.0/address-model.html | 25 ----------------------
 .../documentation/2.40.0/address-model.html        | 19 ----------------
 2 files changed, 44 deletions(-)

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 095b3f029..5e65cfa55 100644
--- a/src/components/artemis/documentation/2.0.0/address-model.html
+++ b/src/components/artemis/documentation/2.0.0/address-model.html
@@ -61,31 +61,6 @@
     
     
     <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>    
-
         <script>
             document.addEventListener("DOMContentLoaded", function() {
                 const pathSegments = window.location.pathname.split('/');
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 5f73227b8..853dcc194 100644
--- a/src/components/artemis/documentation/2.40.0/address-model.html
+++ b/src/components/artemis/documentation/2.40.0/address-model.html
@@ -10,25 +10,6 @@
 <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() {
-    const pathSegments = window.location.pathname.split('/');
-    if (window.location.hostname == "activemq.apache.org" && 
pathSegments[pathSegments.length - 2] != "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. ";
-
-        var link = document.createElement("a");
-        link.href = "../latest";
-        link.textContent = "Here is the latest documentation.";
-        message.appendChild(link);
-
-        document.body.insertBefore(message, document.body.firstChild);
-    }
-});
-</script>
     <script>
             document.addEventListener("DOMContentLoaded", function() {
                 const pathSegments = window.location.pathname.split('/');


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