File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const createDocs = async ({
3535 {
3636 allMdx(
3737 filter: {
38- fileAbsolutePath: { regex: "/^(?!.* TOC).*$/" }
38+ fileAbsolutePath: { regex: "/tidbcloud/((?! TOC).) *$/" }
3939 slug: {
4040 nin: ["en/tidb/_docHome", "zh/tidb/_docHome", "ja/tidb/_docHome"]
4141 }
@@ -98,7 +98,8 @@ 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 ]
101+ // const locale = [Locale.en, Locale.zh, Locale.ja]
102+ const locale = [ Locale . en ]
102103 . map ( ( l ) =>
103104 versionRecord [ l ] [ pathConfig . repo ] ?. [ name ] ?. includes ( pathConfig . version )
104105 ? l
@@ -291,7 +292,7 @@ export const createDocSearch = async ({
291292 const template = resolve ( __dirname , "../src/templates/DocSearchTemplate.tsx" ) ;
292293
293294 createPage ( {
294- path : "/search" ,
295+ path : "/search/ " ,
295296 component : template ,
296297 context : {
297298 feature : {
@@ -307,7 +308,7 @@ export const create404 = async ({
307308 const template = resolve ( __dirname , "../src/templates/404Template.tsx" ) ;
308309
309310 createPage ( {
310- path : "/404" ,
311+ path : "/404/ " ,
311312 component : template ,
312313 context : {
313314 buildType : ( process . env . WEBSITE_BUILD_TYPE ??
You can’t perform that action at this time.
0 commit comments