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);
|
||||
|
||||
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.
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