Fix stefankoelle build: .eleventyignore blocks standalone build

- build:stefankoelle now temporarily renames .eleventyignore during build
- build-pdf.sh: restore .eleventyignore rename trick
- The root eleventy build ignores stefankoelle/ (uses shared/_includes
  which lacks stefankoelle.njk layout), so the standalone build must
  bypass the ignore file
This commit is contained in:
2026-09-11 14:20:52 +02:00
parent a5b4a20895
commit 19f492b7e0
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
"dev:stefankoelle": "npx @11ty/eleventy --config=stefankoelle/eleventy.config.js --serve --port=8086",
"dev:timecapsule": "cd timecapsule && npx @11ty/eleventy --serve --port=8087",
"build": "npx @11ty/eleventy",
"build:stefankoelle": "npx @11ty/eleventy --config=stefankoelle/eleventy.config.js",
"build:stefankoelle": "mv .eleventyignore .eleventyignore.bak && npx @11ty/eleventy --config=stefankoelle/eleventy.config.js; mv .eleventyignore.bak .eleventyignore 2>/dev/null; true",
"build:timecapsule": "cd timecapsule && npx @11ty/eleventy && mkdir -p ../dist/moonweb/timecapsule && cp -r _site/timecapsule/* ../dist/moonweb/timecapsule/",
"build:moonweb": "npm run build && npm run build:timecapsule",
"pdf:cv": "bash stefankoelle/pdf/build-pdf.sh",
-1
View File
@@ -17,7 +17,6 @@ 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"