This is an automated email from the ASF dual-hosted git repository.
github-actions[bot] pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/arrow-java.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 7b52ac18a Publish documentation
(45fa93be0ee6a90324e5dd0076a098f2dc9a4583)
7b52ac18a is described below
commit 7b52ac18acf8a03572c6243dc85afb72e00eab62
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Oct 30 03:13:42 2026 +0000
Publish documentation (45fa93be0ee6a90324e5dd0076a098f2dc9a4583)
---
main/reference/script-files/script.js | 6 +++---
main/reference/script-files/search-page.js | 28 ++++++++++++++--------------
main/reference/script-files/search.js | 2 +-
3 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/main/reference/script-files/script.js
b/main/reference/script-files/script.js
index 02b12074c..3b8599434 100644
--- a/main/reference/script-files/script.js
+++ b/main/reference/script-files/script.js
@@ -224,13 +224,13 @@ function isInput(elem) {
function switchCopyLabel(button, span) {
var copied = span.getAttribute("data-copied");
button.classList.add("visible");
- var initialLabel = span.innerHTML;
- span.innerHTML = copied;
+ var initialLabel = span.textContent;
+ span.textContent = copied;
setTimeout(function() {
button.classList.remove("visible");
setTimeout(function() {
if (initialLabel !== copied) {
- span.innerHTML = initialLabel;
+ span.textContent = initialLabel;
}
}, 100);
}, 1900);
diff --git a/main/reference/script-files/search-page.js
b/main/reference/script-files/search-page.js
index ec0d815ee..594d21411 100644
--- a/main/reference/script-files/search-page.js
+++ b/main/reference/script-files/search-page.js
@@ -17,7 +17,7 @@ $(function() {
if (redirect.is(":checked")) {
href += "&r=1";
}
- searchLink.html(href);
+ searchLink.text(href);
copy[0].onmouseenter();
}
function copyLink(e) {
@@ -55,11 +55,11 @@ $(window).on("load", function() {
const MIN_TABBED_RESULTS = 10;
function renderResults(result) {
if (!result.length) {
- notify.html(messages.noResult);
+ notify.text(messages.noResult);
} else if (result.length === 1) {
- notify.html(messages.oneResult);
+ notify.text(messages.oneResult);
} else {
- notify.html(messages.manyResults.replace("{0}", result.length));
+ notify.text(messages.manyResults.replace("{0}", result.length));
}
resultContainer.empty();
var r = {
@@ -78,7 +78,7 @@ $(window).on("load", function() {
activeTab = Object.keys(r).find(category => r[category].length >
0);
}
if (feelingLucky && activeTab) {
- notify.html(messages.redirecting)
+ notify.text(messages.redirecting)
var firstItem = r[activeTab][0];
window.location = getURL(firstItem.indexItem, firstItem.category);
return;
@@ -105,10 +105,10 @@ $(window).on("load", function() {
.attr("tabIndex", "-1")
.addClass("page-search-header")
.append($("<span/>")
- .html(categories[key])
+ .text(categories[key])
.append($("<span/>")
.attr("style", "font-weight:normal;")
- .html(" (" + count + ")")))
+ .text(" (" + count + ")")))
.on("click", null, key, function(e) {
fixedTab = true;
renderResult(e.data, $(this));
@@ -155,8 +155,8 @@ $(window).on("load", function() {
}
col2 = descDesc;
$("<div class='table-header'/>")
- .append($("<span class='table-header'/>").html(col1))
- .append($("<span class='table-header'/>").html(col2))
+ .append($("<span class='table-header'/>").text(col1))
+ .append($("<span class='table-header'/>").text(col2))
.appendTo(table);
$.each(items, function(index, item) {
renderItem(item, table);
@@ -185,7 +185,7 @@ $(window).on("load", function() {
.on("mouseleave", unselect.bind(link[0]))
.on("blur", unselect.bind(link[0]))
.append($("<span/>").addClass("search-result-label").html(label))
- .append($("<span/>").addClass("search-result-desc").html(desc))
+ .append($("<span/>").addClass("search-result-desc").text(desc))
.appendTo(table);
}
var timeout;
@@ -201,13 +201,13 @@ $(window).on("load", function() {
setSearchUrl();
var term = searchTerm = input.val().trim();
if (term === "") {
- notify.html(messages.enterTerm);
+ notify.text(messages.enterTerm);
activeTab = "";
fixedTab = false;
resultContainer.empty();
resultSection.hide();
} else {
- notify.html(messages.searching);
+ notify.text(messages.searching);
var module = modules.val();
doSearch({ term: term, maxResults: 1200, module: module},
renderResults);
}
@@ -295,7 +295,7 @@ $(window).on("load", function() {
}
});
reset.on("click", function() {
- notify.html(messages.enterTerm);
+ notify.text(messages.enterTerm);
resultSection.hide();
activeTab = "";
fixedTab = false;
@@ -342,7 +342,7 @@ $(window).on("load", function() {
if (input.val()) {
doPageSearch();
} else {
- notify.html(messages.enterTerm);
+ notify.text(messages.enterTerm);
}
input.select().focus();
});
diff --git a/main/reference/script-files/search.js
b/main/reference/script-files/search.js
index eacb77c23..1ed712123 100644
--- a/main/reference/script-files/search.js
+++ b/main/reference/script-files/search.js
@@ -425,7 +425,7 @@ $.widget("custom.catcomplete", $.ui.autocomplete, {
return $("<li/>")
.append($("<div/>")
.append($("<span/>").addClass("search-result-label").html(label))
-
.append($("<span/>").addClass("search-result-desc").html(resultDesc)))
+
.append($("<span/>").addClass("search-result-desc").text(resultDesc)))
.appendTo(ul);
},
_resizeMenu: function () {