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

Dev #17

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Dev #17

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
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;
}
}
}