diff --git a/src/steps/processLinter.ts b/src/steps/processLinter.ts index a9e71cf4..313d500d 100644 --- a/src/steps/processLinter.ts +++ b/src/steps/processLinter.ts @@ -64,7 +64,8 @@ export async function processLinter(): Promise { } 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) {