Skip to content

Commit

Permalink
Merge pull request #35 from longbridgeapp/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ihavecoke authored Dec 15, 2023
2 parents 87ac994 + 616ed3b commit f3b5473
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
44 changes: 43 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default defineConfig({
srcExclude: ['SUMMARY.md', 'zh-HK.md', 'zh-CN.md', 'en.md'],
srcDir: 'locales',
lastUpdated: true,

head: [
[
'link',
Expand Down Expand Up @@ -103,7 +104,48 @@ 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',
logo: "https://assets.lbkrs.com/uploads/d29e591d-0c3d-4def-b837-cd06dfb4d738/whale-logo.svg",
search: {
provider: "local",
options: {
locales: {
"zh-CN": {
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
noResultsText: "无法找到相关结果",
resetButtonTitle: "清除查询条件",
footer: {
selectText: "选择",
navigateText: "切换",
closeText: "关闭",
},
},
},
},
"zh-HK": {
translations: {
button: {
buttonText: "搜尋文件",
buttonAriaLabel: "搜尋文件",
},
modal: {
noResultsText: "無法找到相關結果",
resetButtonTitle: "清除查詢條件",
footer: {
selectText: "選擇",
navigateText: "切換",
closeText: "關閉",
},
},
},
},
},
},
},
sidebar: {
// en: docsSidebarEN,
// "zh-CN": docsSidebarZHCN,
Expand Down
8 changes: 6 additions & 2 deletions .vitepress/theme/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
@tailwind components;
@tailwind utilities;

/*
.vitepress/theme/custom.css
/*
.vitepress/theme/custom.css
https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
*/
Expand Down Expand Up @@ -170,3 +170,7 @@ ol {
font-size: 0.9em;
color: var(--vp-c-text-3);
}

.DocSearch-Button{
border-color: var(--vp-c-divider);
}

0 comments on commit f3b5473

Please sign in to comment.