Exclude tools and utility files from PDF generation
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Colin 2025-12-02 13:13:43 -05:00
parent c092d07783
commit 70085f5258
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
28 changed files with 4 additions and 4 deletions

View File

@ -47,14 +47,14 @@ function findHtmlFiles(dir, baseDir = dir) {
const fullPath = path.join(dir, entry.name);
if (entry.isDirectory()) {
// Skip pdfs directory, node_modules, includes, and hidden directories
if (entry.name === 'pdfs' || entry.name === 'node_modules' || entry.name === 'includes' || entry.name.startsWith('.')) {
// Skip pdfs directory, node_modules, includes, one-pager-tools, and hidden directories
if (entry.name === 'pdfs' || entry.name === 'node_modules' || entry.name === 'includes' || entry.name === 'one-pager-tools' || entry.name.startsWith('.')) {
continue;
}
files.push(...findHtmlFiles(fullPath, baseDir));
} else if (entry.isFile() && entry.name.endsWith('.html')) {
// Skip template files
if (entry.name.includes('template') || entry.name.includes('with-includes')) {
// Skip template files and utility files
if (entry.name.includes('template') || entry.name.includes('with-includes') || entry.name === 'csv-tool-output.html') {
continue;
}
const relativePath = path.relative(baseDir, fullPath);

Binary file not shown.

Binary file not shown.