This is an automated email from the ASF dual-hosted git repository.
michaelsembwever pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-website.git
The following commit(s) were added to refs/heads/trunk by this push:
new 63fcf057a revive search bar
63fcf057a is described below
commit 63fcf057ab775d6575230530c2f40af162803a71
Author: aviau <[email protected]>
AuthorDate: Thu Aug 27 19:06:09 2026 -0400
revive search bar
patch by Alexandre Viau; reviewed by Michael Semb Wever
Assisted-by: Claude Code:claude-opus-5
---
site-content/docker-entrypoint.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/site-content/docker-entrypoint.sh
b/site-content/docker-entrypoint.sh
index 7551da29b..10c1e2385 100755
--- a/site-content/docker-entrypoint.sh
+++ b/site-content/docker-entrypoint.sh
@@ -230,7 +230,9 @@ prepare_site_html_for_publication() {
cp -r site-content/build/html/* content/
# remove hardcoded domain name, and empty domain names first before we
duplicate and documentation
- content_files_to_change=($(grep -rl 'https://cassandra.apache.org/'
content/))
+ # HTML only: search-index.js is a serialized lunr index whose terms must
stay sorted, and
+ # rewriting a URL term there makes lunr.Index.load() throw, which kills the
docs search box.
+ content_files_to_change=($(grep -rl --include='*.html'
'https://cassandra.apache.org/' content/))
log_message "INFO" "Removing hardcoded domain names in
${#content_files_to_change[*]} files"
for content_file in ${content_files_to_change[*]}
do
@@ -241,7 +243,7 @@ prepare_site_html_for_publication() {
mv /tmp/tmp_sed ${content_file}
done
- content_files_to_change=($(grep -rl 'href="//' content/))
+ content_files_to_change=($(grep -rl --include='*.html' 'href="//' content/))
log_message "INFO" "Removing empty domain names in
${#content_files_to_change[*]} files"
for content_file in ${content_files_to_change[*]}
do
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]