Skip to content

Commit

Permalink
add ext filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Feverqwe committed Oct 27, 2023
1 parent efe2694 commit 1c60dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/steps/processLinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export async function processLinter(): Promise<void> {
}

export async function initLinterWorkers() {
const navigationPaths = TocService.getNavigationPaths();
const navigationPaths = TocService.getNavigationPaths()
.filter((filename) => extname(filename) === '.md');
const chunkSize = getChunkSize(navigationPaths);

if (process.env.DISABLE_PARALLEL_BUILD || chunkSize < MIN_CHUNK_SIZE || WORKERS_COUNT <= 0) {
Expand Down

0 comments on commit 1c60dd8

Please sign in to comment.