Regenerate PDFs and update pre-push hook to always generate
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Colin 2025-12-02 12:28:57 -05:00
parent 9165562b2a
commit 3c03708951
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
30 changed files with 2 additions and 12 deletions

View File

@ -4,8 +4,8 @@
<</Title (localhost:8765/includes/header.html) <</Title (localhost:8765/includes/header.html)
/Creator (Mozilla/5.0 \(Macintosh; Intel Mac OS X 10_15_7\) AppleWebKit/537.36 \(KHTML, like Gecko\) HeadlessChrome/142.0.0.0 Safari/537.36) /Creator (Mozilla/5.0 \(Macintosh; Intel Mac OS X 10_15_7\) AppleWebKit/537.36 \(KHTML, like Gecko\) HeadlessChrome/142.0.0.0 Safari/537.36)
/Producer (Skia/PDF m142) /Producer (Skia/PDF m142)
/CreationDate (D:20251202161921+00'00') /CreationDate (D:20251202172616+00'00')
/ModDate (D:20251202161921+00'00')>> /ModDate (D:20251202172616+00'00')>>
endobj endobj
3 0 obj 3 0 obj
<</ca 1 <</ca 1

Binary file not shown.

Binary file not shown.

View File

@ -28,16 +28,6 @@ if [ ! -f "$GENERATE_PDFS_SCRIPT" ]; then
exit 0 exit 0
fi fi
# Check if PDFs already exist and are up to date
if [ -d "$PDFS_DIR" ]; then
PDF_COUNT=$(find "$PDFS_DIR" -name "*.pdf" -type f 2>/dev/null | wc -l | tr -d ' ')
if [ "$PDF_COUNT" -gt 0 ]; then
echo "PDFs already exist ($PDF_COUNT files), skipping generation"
echo "To regenerate PDFs, run: cd docker && PUPPETEER_EXECUTABLE_PATH=\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\" npm run generate-pdfs"
exit 0
fi
fi
echo "Running pre-push hook: Generating PDFs..." echo "Running pre-push hook: Generating PDFs..."
# Navigate to docker directory # Navigate to docker directory