Exclude tools and utility files from PDF generation
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
c092d07783
commit
70085f5258
|
|
@ -47,14 +47,14 @@ function findHtmlFiles(dir, baseDir = dir) {
|
||||||
const fullPath = path.join(dir, entry.name);
|
const fullPath = path.join(dir, entry.name);
|
||||||
|
|
||||||
if (entry.isDirectory()) {
|
if (entry.isDirectory()) {
|
||||||
// Skip pdfs directory, node_modules, includes, and hidden directories
|
// 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.startsWith('.')) {
|
if (entry.name === 'pdfs' || entry.name === 'node_modules' || entry.name === 'includes' || entry.name === 'one-pager-tools' || entry.name.startsWith('.')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
files.push(...findHtmlFiles(fullPath, baseDir));
|
files.push(...findHtmlFiles(fullPath, baseDir));
|
||||||
} else if (entry.isFile() && entry.name.endsWith('.html')) {
|
} else if (entry.isFile() && entry.name.endsWith('.html')) {
|
||||||
// Skip template files
|
// Skip template files and utility files
|
||||||
if (entry.name.includes('template') || entry.name.includes('with-includes')) {
|
if (entry.name.includes('template') || entry.name.includes('with-includes') || entry.name === 'csv-tool-output.html') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const relativePath = path.relative(baseDir, fullPath);
|
const relativePath = path.relative(baseDir, fullPath);
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue