Skip to content

Commit

Permalink
docs: fix chinese document nav change
Browse files Browse the repository at this point in the history
  • Loading branch information
logeast committed Jul 31, 2023
1 parent b9d1bdc commit 02ae017
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,27 @@ export default defineConfig({
root: {
label: "English",
lang: "en-US",
themeConfig: {
logo: "https://logeast.cc/cdn/imghub/logo-pure.png",
nav: [
{ text: "Guide", link: "/guide/index.md" },
{ text: "API", link: "/api/index.md" },
{ text: "Cases", link: "/cases/index.md" },
],
},
},
zh: {
label: "简体中文",
lang: "zh",
title: "魔法抽奖",
themeConfig: {
logo: "https://logeast.cc/cdn/imghub/logo.png",
nav: [
{ text: "指引", link: "zh/guide/index.md" },
{ text: "API", link: "zh/api/index.md" },
{ text: "实例", link: "zh/cases/index.md" },
],
},
},
},
head: [
Expand Down Expand Up @@ -42,11 +58,6 @@ export default defineConfig({
pattern: "https://github.com/logeast/magic-lottery/tree/main/docs/:path",
text: "Suggest changes to this page",
},
nav: [
{ text: "Guide", link: "/guide/index.md" },
{ text: "API", link: "/api/index.md" },
{ text: "Cases", link: "/cases/index.md" },
],
search: {
provider: "local",
},
Expand Down

0 comments on commit 02ae017

Please sign in to comment.