This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.20 by this push:
new 5dd89f15e1b [FLINK-38945][docs] Bump Hugo to v0.124.1 to fix ref
resolution for connector docs
5dd89f15e1b is described below
commit 5dd89f15e1b418f2ab04d0da4ec7e69e9354af80
Author: Martijn Visser <[email protected]>
AuthorDate: Tue Feb 10 11:52:03 2026 +0100
[FLINK-38945][docs] Bump Hugo to v0.124.1 to fix ref resolution for
connector docs
(cherry picked from commit 280e8894491f41c303476caa26aacce066d39c30)
---
docs/setup_hugo.sh | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/docs/setup_hugo.sh b/docs/setup_hugo.sh
index 5f3fa290284..b9eb37b8368 100644
--- a/docs/setup_hugo.sh
+++ b/docs/setup_hugo.sh
@@ -18,10 +18,25 @@
################################################################################
# setup hugo
-HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_Linux-64bit.tar.gz
-HUGO_ARTIFACT=hugo_extended_0.110.0_Linux-64bit.tar.gz
+
+# Detect Operating System
+OS="Linux"
+[[ "$OSTYPE" == "darwin"* ]] && OS="Mac"
+
+# Setup Hugo based on OS
+if [ "$OS" = "Mac" ]; then
+ HUGO_ARTIFACT="hugo_extended_0.124.1_darwin-universal.tar.gz"
+else
+ HUGO_ARTIFACT="hugo_extended_0.124.1_Linux-64bit.tar.gz"
+fi
+
+HUGO_REPO="https://github.com/gohugoio/hugo/releases/download/v0.124.1/${HUGO_ARTIFACT}"
if ! curl --fail -OL $HUGO_REPO ; then
echo "Failed to download Hugo binary"
exit 1
fi
-tar -zxvf $HUGO_ARTIFACT -C /usr/local/bin
+if [ "$OS" = "Mac" ]; then
+ tar -zxvf $HUGO_ARTIFACT -C /usr/local/bin --include='hugo'
+else
+ tar -zxvf $HUGO_ARTIFACT -C /usr/local/bin --wildcards --no-anchored 'hugo'
+fi