Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ja doc home #553

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 8126 files
6 changes: 4 additions & 2 deletions gatsby/create-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export const createDocs = async ({
allMdx(
filter: {
fileAbsolutePath: { regex: "/^(?!.*TOC).*$/" }
slug: { nin: ["en/tidb/_docHome", "zh/tidb/_docHome"] }
slug: {
nin: ["en/tidb/_docHome", "zh/tidb/_docHome", "ja/tidb/_docHome"]
}
frontmatter: { draft: { ne: true } }
}
) {
Expand Down Expand Up @@ -251,7 +253,7 @@ export const createDocHome = async ({
const path = generateDocHomeUrl(name, pathConfig);
const navUrl = generateNav(pathConfig);

const locale = [Locale.en, Locale.zh];
const locale = [Locale.en, Locale.zh, Locale.ja];

createPage({
path,
Expand Down
2 changes: 1 addition & 1 deletion src/shared/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
export function generateDocsHomeUrl(lang?: string) {
switch (lang) {
case "ja":
return "/ja/tidbcloud";
return "/ja";
case "zh":
return "/zh";
case "en":
Expand Down