diff --git a/packages/docz-core/src/Entries.tsx b/packages/docz-core/src/Entries.tsx index bd9e1a476..99e22fc41 100644 --- a/packages/docz-core/src/Entries.tsx +++ b/packages/docz-core/src/Entries.tsx @@ -99,8 +99,6 @@ export class Entries { Array.isArray(pattern) ? [...pattern, ignoreGlob] : [pattern, ignoreGlob] ) - const isEntry = async (file: string) => Entry.check(file) - const createEntry = async (file: string) => { const ast = await parseMdx(file) const { settings, ...entry } = new Entry(ast, file, src) @@ -112,7 +110,7 @@ export class Entries { } const map = new Map() - const entries = await Promise.all(files.filter(isEntry).map(createEntry)) + const entries = await Promise.all(files.map(createEntry)) for (const entry of entries) { map.set(entry.filepath, entry) diff --git a/packages/docz-core/src/Entry.ts b/packages/docz-core/src/Entry.ts index dd4d96aed..5461bfb8e 100644 --- a/packages/docz-core/src/Entry.ts +++ b/packages/docz-core/src/Entry.ts @@ -73,12 +73,6 @@ export interface EntryObj { export class Entry { readonly [key: string]: any - public static async check(file: string): Promise { - const ast = await parseMdx(file) - const parsed = getParsedData(ast) - return Boolean(parsed && parsed.name) - } - public id: string public filepath: string public slug: string