From 3a2fea9655d3d60a8e2e12d0dfe05fa033069570 Mon Sep 17 00:00:00 2001 From: fcbyk <731240932@qq.com> Date: Mon, 29 Apr 2024 02:22:20 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E7=BB=93=E6=9E=84=EF=BC=8C=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mts | 51 +++++++++++++++++++---- docs/{bookmarks.md => bookmarks/index.md} | 5 ++- docs/{pages => css}/animation.md | 0 docs/{pages => css}/clock.md | 0 docs/{pages => css}/navigation-bar.md | 0 docs/index.md | 27 ++++++++---- docs/name.md | 10 ++--- 7 files changed, 71 insertions(+), 22 deletions(-) rename docs/{bookmarks.md => bookmarks/index.md} (67%) rename docs/{pages => css}/animation.md (100%) rename docs/{pages => css}/clock.md (100%) rename docs/{pages => css}/navigation-bar.md (100%) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index f4e515f..0278c52 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -34,27 +34,64 @@ export default defineConfig({ // 配置侧边栏 sidebar:{ - "/pages/":[ + "/css/":[ { text: "导航栏", - link: "/pages/navigation-bar", + link: "/css/navigation-bar", }, { text: "时钟", - link: "/pages/clock", + link: "/css/clock", }, { text: "动画", - link: "/pages/animation", + link: "/css/animation", + } + ], + "/":[ + { + text: "关于本站", + link: "/", + }, + { + text: "域名由来", + link: "/name", } ] }, nav:[ { - text: "CSS练习", - link: "/pages/navigation-bar" + text: "CSS", + link: "/css/navigation-bar" + }, + { + text: "书签", + link: "/bookmarks/" + } + ], + search: { + provider: 'local', + options: { + locales: { + root: { + translations: { + button: { + buttonText: '搜索文档', + buttonAriaLabel: '搜索文档' + }, + modal: { + noResultsText: '无法找到相关结果', + resetButtonTitle: '清除查询条件', + footer: { + selectText: '选择', + navigateText: '切换' + } + } + } + } + } } - ] + } } }) diff --git a/docs/bookmarks.md b/docs/bookmarks/index.md similarity index 67% rename from docs/bookmarks.md rename to docs/bookmarks/index.md index 32f4a9b..cc80051 100644 --- a/docs/bookmarks.md +++ b/docs/bookmarks/index.md @@ -1,12 +1,13 @@ --- layout: doc layoutClass: bookmarks +sidebar: false outline: [2, 3, 4] --- # 浏览器书签 diff --git a/docs/pages/animation.md b/docs/css/animation.md similarity index 100% rename from docs/pages/animation.md rename to docs/css/animation.md diff --git a/docs/pages/clock.md b/docs/css/clock.md similarity index 100% rename from docs/pages/clock.md rename to docs/css/clock.md diff --git a/docs/pages/navigation-bar.md b/docs/css/navigation-bar.md similarity index 100% rename from docs/pages/navigation-bar.md rename to docs/css/navigation-bar.md diff --git a/docs/index.md b/docs/index.md index 80a4b15..8681556 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,13 +5,24 @@ # 此外,还有一些配置选项只能在 frontmatter 中定义 # 大部分 frontmatter 选项仅在使用默认主题时适用 -layout: home +# layout: home -hero: - name: "小屋文档" - tagline: 目前站点内容较少,佛系更新中... - actions: - - theme: brand - text: 前往书签页 - link: /bookmarks +# hero: +# name: "小屋文档" +# tagline: 目前站点内容较少,佛系更新中... +# actions: +# - theme: brand +# text: 前往书签页 +# link: /bookmarks + +layout: doc --- +# 关于本站 +本站由 [VitePress](https://vitepress.dev/zh/) 构建,部署在 [GitHub Pages](https://docs.github.com/zh/pages) 和 [阿里云服务器](https://www.aliyun.com/) 上,两者区别在于,GitHub Pages的更新更及时,阿里云的国内访问速度更快 + +本站点的域名为 [docs.fcbyk.com](https://docs.fcbyk.com/),访问阿里云部署的站点需要在域名添加 ali 前缀,即 [ali.docs.fcbyk.com](https://ali.docs.fcbyk.com/) + +## 目前在更新的内容 +目前正在更新css相关的笔记和练习,以及根目录下的文档等 + +## 未完待续... \ No newline at end of file diff --git a/docs/name.md b/docs/name.md index f789f44..73bae6f 100644 --- a/docs/name.md +++ b/docs/name.md @@ -1,10 +1,10 @@ --- layout: doc -prev: false -next: false -sidebar: false -aside: false -layoutClass: delete-nav +# prev: false +# next: false +# sidebar: false +# aside: false +# layoutClass: delete-nav --- # 名字由来