This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/activemq-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new f0ed41ce1 Automatic Site Publish by Buildbot
f0ed41ce1 is described below
commit f0ed41ce1dbf13c710e0e64ab8b252be93a48a64
Author: buildbot <[email protected]>
AuthorDate: Tue May 20 14:34:57 2025 +0000
Automatic Site Publish by Buildbot
---
.../documentation/2.40.0/address-model.html | 26 +++++++++++++++++++++-
.../documentation/latest/address-model.html | 26 +++++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/output/components/artemis/documentation/2.40.0/address-model.html
b/output/components/artemis/documentation/2.40.0/address-model.html
index 68d431b7b..cb8d007af 100644
--- a/output/components/artemis/documentation/2.40.0/address-model.html
+++ b/output/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/output/components/artemis/documentation/latest/address-model.html
b/output/components/artemis/documentation/latest/address-model.html
index 558d64cc4..ee7a42550 100644
--- a/output/components/artemis/documentation/latest/address-model.html
+++ b/output/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