mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 05:10:21 +03:00
Dont build pages starting with _
This commit is contained in:
parent
a402fa7970
commit
6cc1e4a2b3
|
@ -59,7 +59,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