From c512a52af2eb7cefc3f911e5e68b5d55d9cf057c Mon Sep 17 00:00:00 2001 From: 01Petard <1520394133@qq.com> Date: Tue, 17 Dec 2024 21:50:24 +0800 Subject: [PATCH] =?UTF-8?q?BIG-feat:=20=E5=B0=86config.js=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=94=B9=E4=B8=BAts=E6=A0=BC=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E2=80=9C=E4=B8=BB=E9=A1=B5=E2=80=9D?= =?UTF-8?q?=E5=92=8C=E2=80=9C=E5=85=B3=E4=BA=8E=E6=88=91=E2=80=9D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A4=A7=E9=87=8F=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/{config.js => config.mts} | 8 ++- docs/about.md | 77 +++++++++++++++++------ docs/index.md | 24 +++++-- 3 files changed, 82 insertions(+), 27 deletions(-) rename docs/.vitepress/{config.js => config.mts} (99%) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.mts similarity index 99% rename from docs/.vitepress/config.js rename to docs/.vitepress/config.mts index fc86c08..0c410b7 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.mts @@ -1,6 +1,8 @@ // .vitepress/config.js +import { defineConfig } from 'vitepress'; + const base = "/blog-vue-vitepress/"; -export default { +export default defineConfig({ base, lang: 'zh-cn', title: "代码港湾", @@ -18,7 +20,7 @@ export default { }, // 修改侧边栏导航的标题 outline: { - level: [1, 2, 3, 4], + level: [1, 2], label: "目录导航" }, // 文档页脚的文字 @@ -287,4 +289,4 @@ export default { {icon: 'github', link: 'https://github.com/01Petard'} ], } -}; +}); diff --git a/docs/about.md b/docs/about.md index ce80b6e..0987875 100644 --- a/docs/about.md +++ b/docs/about.md @@ -5,32 +5,73 @@ type: "about" comments: false --- -
- I wish you to become your own sun , no need to rely on who’s light. -
-- —— 愿你成为自己的太阳,无需凭借谁的光芒。 -
-+ Wish you to become your own sun, no need to rely on who’s light. +
++ —— 愿你成为自己的太阳,无需凭借谁的光芒。 +
+