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 a05f365ad Automatic Site Publish by Buildbot
a05f365ad is described below
commit a05f365ad5cf13316001f5b4ce1e54966c1a9391
Author: buildbot <[email protected]>
AuthorDate: Tue May 20 17:06:09 2025 +0000
Automatic Site Publish by Buildbot
---
.../documentation/latest/address-model.html | 35 ++++++++++------------
1 file changed, 15 insertions(+), 20 deletions(-)
diff --git a/output/components/artemis/documentation/latest/address-model.html
b/output/components/artemis/documentation/latest/address-model.html
index ee7a42550..48b3045b6 100644
--- a/output/components/artemis/documentation/latest/address-model.html
+++ b/output/components/artemis/documentation/latest/address-model.html
@@ -11,28 +11,23 @@
<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. ";
+ 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. ";
- // Create a link
- var link = document.createElement("a");
- link.href = "../latest/" +
currentUrl.substring(currentUrl.lastIndexOf('/') + 1);
- link.textContent = "Consider using the latest documentation.";
+ var link = document.createElement("a");
+ link.href = "../latest";
+ link.textContent = "Here is the latest documentation.";
+ message.appendChild(link);
- message.appendChild(link);
-
- // Insert the message at the top of the body
- document.body.insertBefore(message, document.body.firstChild);
- }
-});
+ document.body.insertBefore(message, document.body.firstChild);
+ }
+ });
</script>
</head>
<body class="book toc2 toc-left">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact