-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sidebar, nav, search 配置项分文件编写
- Loading branch information
Showing
6 changed files
with
128 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { DefaultTheme } from "vitepress"; | ||
|
||
export const nav: DefaultTheme.NavItem[] = [ | ||
{ | ||
text: "前端", | ||
link: "/frontend/navigation-bar" | ||
}, | ||
{ | ||
text: "408", | ||
items: [ | ||
{ | ||
text: "数据结构与算法", | ||
link: "/408/algorithm/" | ||
}, | ||
// { | ||
// text:"操作系统", | ||
// link:"." | ||
// }, | ||
// { | ||
// text:"计算机网络", | ||
// link:"." | ||
// }, | ||
// { | ||
// text:"计算机组成原理", | ||
// link:"." | ||
// }, | ||
] | ||
}, | ||
{ | ||
text: "书签", | ||
link: "/bookmarks/" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { DefaultTheme } from "vitepress"; | ||
|
||
export const search: | { provider: 'local'; options?: DefaultTheme.LocalSearchOptions } | ||
| { provider: 'algolia'; options: DefaultTheme.AlgoliaSearchOptions } = { | ||
provider: 'local', | ||
options: { | ||
locales: { | ||
root: { | ||
translations: { | ||
button: { | ||
buttonText: '搜索文档', | ||
buttonAriaLabel: '搜索文档' | ||
}, | ||
modal: { | ||
noResultsText: '无法找到相关结果', | ||
resetButtonTitle: '清除查询条件', | ||
footer: { | ||
selectText: '选择', | ||
navigateText: '切换' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { DefaultTheme } from "vitepress" | ||
import sidebar_408 from "../../408/sidebar" | ||
import sidebar_fe from "../../frontend/sidebar" | ||
|
||
export const sidebar:DefaultTheme.Sidebar = { | ||
"/408/": sidebar_408, | ||
"/frontend/": sidebar_fe, | ||
"/": [ | ||
{ | ||
text: "关于本站", | ||
link: "/", | ||
}, | ||
{ | ||
text: "域名由来", | ||
link: "/name", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { DefaultTheme } from "vitepress" | ||
|
||
const sidebar:DefaultTheme.SidebarItem[] = [ | ||
{ | ||
text: "基础算法", | ||
link: "/408/algorithm/", | ||
}, | ||
] | ||
|
||
export default sidebar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { DefaultTheme } from "vitepress" | ||
|
||
const sidebar:DefaultTheme.SidebarItem[] = [ | ||
{ | ||
text: "阅读", | ||
collapsed: true, | ||
items: [ | ||
{ | ||
text: "CSS", | ||
link: "/frontend/notes/css" | ||
} | ||
] | ||
}, | ||
{ | ||
text: "练习", | ||
collapsed: true, | ||
items: [ | ||
{ | ||
text: "导航栏", | ||
link: "/frontend/navigation-bar", | ||
}, | ||
{ | ||
text: "时钟", | ||
link: "/frontend/clock", | ||
}, | ||
{ | ||
text: "动画", | ||
link: "/frontend/animation", | ||
} | ||
] | ||
} | ||
] | ||
|
||
export default sidebar |