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 80b96dd70 Automatic Site Publish by Buildbot
80b96dd70 is described below
commit 80b96dd70f6a79746819589d927b2f134ee6f6de
Author: buildbot <[email protected]>
AuthorDate: Tue May 20 17:01:09 2025 +0000
Automatic Site Publish by Buildbot
---
.../artemis/documentation/2.40.0/address-model.html | 15 +++++----------
1 file changed, 5 insertions(+), 10 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 cb8d007af..be1df872b 100644
--- a/output/components/artemis/documentation/2.40.0/address-model.html
+++ b/output/components/artemis/documentation/2.40.0/address-model.html
@@ -12,24 +12,19 @@
<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!");
+ 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. ";
+ 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.";
-
+ link.href = "../latest";
+ 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);
}
});
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact