mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 04:40:20 +03:00
Dont build pages starting with _
This commit is contained in:
parent
5d55ce309d
commit
5f4abe40ef
|
@ -58,7 +58,7 @@ export const getStaticPaths: GetStaticPaths<ParsedUrlQuery> = async () => {
|
||||||
if (dirent.isDirectory()) {
|
if (dirent.isDirectory()) {
|
||||||
return loadFolder([...pathBase, dirent.name])
|
return loadFolder([...pathBase, dirent.name])
|
||||||
}
|
}
|
||||||
if (!dirent.name.includes('.mdx')) {
|
if (!dirent.name.includes('.mdx') || dirent.name[0] === '_') {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user