Fix stefankoelle build: temporarily hide .eleventyignore

build-pdf.sh now temporarily renames .eleventyignore during the
stefankoelle Eleventy build, restored via trap on EXIT. This allows
the standalone stefankoelle build to work while the main build
still ignores stefankoelle/ via .eleventyignore.
This commit is contained in:
2026-09-11 12:47:03 +02:00
parent dbb791b1a6
commit 401868cde5
2 changed files with 6 additions and 0 deletions
+6
View File
@@ -17,6 +17,12 @@ echo "==> Installing WeasyPrint..."
pip install -q -r "$REQUIREMENTS" pip install -q -r "$REQUIREMENTS"
echo "==> Building stefankoelle with Eleventy..." echo "==> Building stefankoelle with Eleventy..."
# Temporarily hide .eleventyignore so the standalone stefankoelle build works
IGNORE_FILE="$PROJECT_DIR/.eleventyignore"
if [ -f "$IGNORE_FILE" ]; then
mv "$IGNORE_FILE" "$IGNORE_FILE.bak"
trap 'mv "$IGNORE_FILE.bak" "$IGNORE_FILE"' EXIT
fi
npx @11ty/eleventy --config="$PROJECT_DIR/stefankoelle/eleventy.config.js" npx @11ty/eleventy --config="$PROJECT_DIR/stefankoelle/eleventy.config.js"
echo "==> Generating PDF..." echo "==> Generating PDF..."
Binary file not shown.