diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 72fe3e4..52809d0 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -16,9 +16,29 @@ export default defineConfig({ description: "许大仙前端、Java、大数据、云原生", head: [ // favicon.ico 图标等 ['link', { rel: "shortcut icon", href: `${VITE_BASE_URL}/logo.svg` }], + ['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }], + [ + 'script', + { id: 'register-sw' }, + `;(() => { + if ('serviceWorker' in navigator) { + navigator.serviceWorker.register('/sw.js') + } + })()` + // would render: + // + // + ], ['meta', { name: "viewport", content: "width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,shrink-to-fit=no" }], ['meta', { name: "keywords", content: "许大仙,许大仙的博客" }], ], + appearance: true, // 主题模式,默认浅色且开启切换 base: VITE_BASE_URL, lastUpdated: true, // 上次更新 vite: { @@ -38,7 +58,7 @@ export default defineConfig({ lazyLoading: true }, }, - themeConfig: {// 主题设置 + themeConfig: { // 主题设置 lastUpdatedText: '上次更新', // 上次更新显示文本 returnToTopLabel: '返回顶部', // 更改手机端菜单文字显示 search: { // 本地搜索 @@ -48,11 +68,12 @@ export default defineConfig({ nav: nav, // 导航 sidebar: sidebar, // 侧边栏 socialLinks: [ // 社交链接 - { icon: 'github', link: 'https://github.com/Aurorxa' } + { icon: 'github', link: 'https://github.com/Aurorxa' }, ], docFooter: { // 自定义上下页名 prev: '上一篇', next: '下一篇' }, + darkModeSwitchLabel: '深浅模式', // 切换深色模式的文字 footer: { // 页脚 message: 'Released under the MIT License.', copyright: `Copyright © ${dayjs().format("YYYY")} 许大仙` diff --git a/docs/.vitepress/navbar/index.ts b/docs/.vitepress/navbar/index.ts index ddc7b20..3b2f1d7 100644 --- a/docs/.vitepress/navbar/index.ts +++ b/docs/.vitepress/navbar/index.ts @@ -14,4 +14,5 @@ export const nav: DefaultTheme.NavItem[] = [ ] }, { text: '开源软件', link: 'https://aexiar.github.io/open-software/notes/' }, + { text: '关于我', link: 'notes/about/' }, ] \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 89316be..a1fa35a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,26 +1,32 @@ --- # 官方文档相关配置:https://vitepress.dev/reference/default-theme-layout -layout: home +layout: home # home 是首页,doc 是文档页,page 无样式的文档,自定义页面 home: true # 官方文档相关配置:https://vitepress.dev/reference/default-theme-home-page +lang: zh-CN title: 许大仙的博客 titleTemplate: Hi,终于等到你 editLink: true lastUpdated: true -head: +# 指定要为当前页面注入的额外头标签。将附加在站点级配置注入的头标签之后 +head: - - meta - name: description content: 许大仙前端、Java、大数据、云原生 - - meta - name: keywords content: 许大仙,许大仙的博客 - -hero: + +# 网站的居中文案 +hero: name: "许大仙同学" text: "" tagline: "『这个世纪疯狂,没人性,腐败;你却一直清醒,温柔,一尘不染。』" + image: # text 和 tagline 区域旁的图片 + src: /logo.svg + alt: "许大仙" # 按钮相关 actions: - theme: brand @@ -56,11 +62,14 @@ hero: # 按钮下方的描述 features: - - title: "学习思路" + - icon: 🧠 + title: "学习思路" details: "学习思路就这么几条:模仿、遍历、分治、动态规划、……" - - title: "学习手法" + - icon: ✍️ + title: "学习手法" details: "学习手法就这么几种:缓存、索引、信号/事件、回调/消息循环/dispatcher、……" - - title: "注意事项" + - icon: 🚨 + title: "注意事项" details: "注意事项就这么几点:边界值、等价类、数据完整性原子性、死锁、空转、……" --- diff --git a/docs/notes/about/index.md b/docs/notes/about/index.md new file mode 100644 index 0000000..160b912 --- /dev/null +++ b/docs/notes/about/index.md @@ -0,0 +1,112 @@ +### 后端技术栈 + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +### 前端技术栈 + ++ + + + + + + + + + + + + + + + + +
+ +### DevOps + ++ + + + + + + + + + + + +
+ +### 运维技术栈 + ++ + + + + + + +
+ +### 测试技术栈 + ++ + +
+ +### 开发工具 + ++ + + + + + +
+ +### 其他 + ++ + + + +
\ No newline at end of file