mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
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:
@@ -17,6 +17,12 @@ echo "==> Installing WeasyPrint..."
|
||||
pip install -q -r "$REQUIREMENTS"
|
||||
|
||||
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"
|
||||
|
||||
echo "==> Generating PDF..."
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user