Skip to content

Commit

Permalink
Merge pull request #17 from longbridgeapp/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ihavecoke authored Nov 6, 2023
2 parents 8ad04bb + 530c2fa commit a483704
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 24 deletions.
48 changes: 28 additions & 20 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineConfig({
appearance: false,
lang: "zh-HK",
cleanUrls: true,
srcExclude: ["SUMMARY.md", 'zh-HK.md', "zh-CN.md", "en.md"],
srcExclude: ["SUMMARY.md", "zh-HK.md", "zh-CN.md", "en.md"],
srcDir: "locales",
lastUpdated: true,
head: [
Expand All @@ -79,30 +79,35 @@ export default defineConfig({
...siteMetadata,
],
locales: {
en: {
label: "English",
lang: "en",
link: "/en/docs",
themeConfig: {
siteTitle: "Whale docs",
editLink: {
pattern: editLinkPattern,
},
},
},
// en: {
// label: "English",
// lang: "en",
// link: "/en/docs",
// themeConfig: {
// nav: [{ text: "Whale Home", link: "https://longbridgewhale.com" }],
// siteTitle: "Whale docs",
// editLink: {
// pattern: editLinkPattern,
// },
// },
// },
"zh-CN": {
label: "简体中文",
lang: "zh-CN",
link: "/zh-CN/docs",
themeConfig: {
siteTitle: "帮助中心",
nav: [{ text: "Whale 首页", link: "https://longbridgewhale.com" }],
editLink: {
pattern: editLinkPattern,
text: "在 GitHub 上编辑此页",
text: "编辑此页",
},
lastUpdated: {
text: "最后更新时间",
},
docFooter: {
prev: "上篇文档",
next: "下篇文档",
prev: "上一篇",
next: "下一篇",
},
},
},
Expand All @@ -112,13 +117,17 @@ export default defineConfig({
link: "/zh-HK/docs",
themeConfig: {
siteTitle: "幫助中心",
nav: [{ text: "Whale 首頁", link: "https://longbridgewhale.com" }],
editLink: {
pattern: editLinkPattern,
text: "在 GitHub 上编辑此页",
text: "编辑此页",
},
lastUpdated: {
text: "最後更新時間",
},
docFooter: {
prev: "上篇文档",
next: "下篇文档",
prev: "上一篇",
next: "下一篇",
},
},
},
Expand All @@ -127,9 +136,8 @@ export default defineConfig({
// https://vitepress.dev/reference/default-theme-config
themeConfig: {
logo: "https://assets.lbkrs.com/uploads/d29e591d-0c3d-4def-b837-cd06dfb4d738/whale-logo.svg",
nav: [{ text: "Whale Home", link: "https://longbridgewhale.com" }],
sidebar: {
en: docsSidebarEN,
// en: docsSidebarEN,
"zh-CN": docsSidebarZHCN,
"zh-HK": docsSidebarZHHK,
},
Expand Down
13 changes: 9 additions & 4 deletions .vitepress/theme/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,18 @@ ol {

/* overwrite vitepress components styles*/
.VPNavBarTitle {
.title {
font-size: 18px;
}
.VPImage {
margin-right: 24px;
margin-right: 16px;
}
}

.level-0 {
.items {
padding-left: 16px;
.VPSidebarItem.level-0 {
.VPLink {
h2 {
font-size: unset;
}
}
}

0 comments on commit a483704

Please sign in to comment.