From faba27b62f25c0c950192a17ec3d47839911d04d Mon Sep 17 00:00:00 2001 From: Xavi Lee Date: Sat, 15 Jun 2024 09:18:07 +0800 Subject: [PATCH] fix graphql error (#62) --- .../lib/bootup/ingestion/createPagesForDocumentation.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/typescriptlang-org/lib/bootup/ingestion/createPagesForDocumentation.ts b/packages/typescriptlang-org/lib/bootup/ingestion/createPagesForDocumentation.ts index 21c4021b..cdc05707 100644 --- a/packages/typescriptlang-org/lib/bootup/ingestion/createPagesForDocumentation.ts +++ b/packages/typescriptlang-org/lib/bootup/ingestion/createPagesForDocumentation.ts @@ -23,7 +23,9 @@ export const createDocumentationPages = async ( filter: { sourceInstanceName: { eq: "documentation" } extension: { eq: "md" } - relativeDirectory: { ne: "en/modules-reference/diagrams" } + relativeDirectory: { + regex: "/^(?!en\\/modules-reference\\/diagrams|zh\\/modules-reference\\/diagrams).*$/" + } } ) { nodes {