From 34aa33da0704df4806cfeaac931531384a1e1553 Mon Sep 17 00:00:00 2001 From: AndreaBozzo Date: Sat, 12 Sep 2026 11:48:18 +0200 Subject: [PATCH] ci: strip README badges from the generated docs homepage --- ci/scripts/build-docs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/scripts/build-docs.sh b/ci/scripts/build-docs.sh index 4bc9875bc..720e4dea8 100755 --- a/ci/scripts/build-docs.sh +++ b/ci/scripts/build-docs.sh @@ -82,8 +82,10 @@ main() { pushd docs - # Use the README as the docs homepage - pandoc ../README.md --from markdown --to rst -s -o source/README_generated.rst + # Use the README as the docs homepage. Badges are stripped: the CSP on + # arrow.apache.org only allows images from *.apache.org. + sed -e '/^\[!\[/d' ../README.md | \ + pandoc --from markdown --to rst -s -o source/README_generated.rst # Use R README as the getting started guide for R pandoc ../r/README.md --from markdown --to rst -s -o source/getting-started/r.rst