Skip to content

Commit 52928c8

Browse files
committed
fix: create pages
1 parent 74a10f4 commit 52928c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gatsby/create-pages.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const createDocs = async ({
3535
{
3636
allMdx(
3737
filter: {
38-
fileAbsolutePath: { regex: "/tidbcloud/((?!TOC).)*$/" }
38+
fileAbsolutePath: { regex: "/^(?!.*TOC).*$/" }
3939
slug: {
4040
nin: ["en/tidb/_docHome", "zh/tidb/_docHome", "ja/tidb/_docHome"]
4141
}
@@ -98,8 +98,7 @@ export const createDocs = async ({
9898
const path = generateUrl(name, pathConfig);
9999
const navUrl = generateNav(pathConfig);
100100

101-
// const locale = [Locale.en, Locale.zh, Locale.ja]
102-
const locale = [Locale.en]
101+
const locale = [Locale.en, Locale.zh, Locale.ja]
103102
.map((l) =>
104103
versionRecord[l][pathConfig.repo]?.[name]?.includes(pathConfig.version)
105104
? l

0 commit comments

Comments
 (0)