We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74a10f4 commit 52928c8Copy full SHA for 52928c8
gatsby/create-pages.ts
@@ -35,7 +35,7 @@ export const createDocs = async ({
35
{
36
allMdx(
37
filter: {
38
- fileAbsolutePath: { regex: "/tidbcloud/((?!TOC).)*$/" }
+ fileAbsolutePath: { regex: "/^(?!.*TOC).*$/" }
39
slug: {
40
nin: ["en/tidb/_docHome", "zh/tidb/_docHome", "ja/tidb/_docHome"]
41
}
@@ -98,8 +98,7 @@ export const createDocs = async ({
98
const path = generateUrl(name, pathConfig);
99
const navUrl = generateNav(pathConfig);
100
101
- // const locale = [Locale.en, Locale.zh, Locale.ja]
102
- const locale = [Locale.en]
+ const locale = [Locale.en, Locale.zh, Locale.ja]
103
.map((l) =>
104
versionRecord[l][pathConfig.repo]?.[name]?.includes(pathConfig.version)
105
? l
0 commit comments