diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts
index 9c647b47..32195a2f 100644
--- a/docs/.vuepress/config.ts
+++ b/docs/.vuepress/config.ts
@@ -3,6 +3,7 @@ import theme from "./theme.js";
import {commentPlugin} from "@vuepress/plugin-comment";
import {componentsPlugin} from "vuepress-plugin-components";
import viteBundler from "@vuepress/bundler-vite";
+import {path} from "@vuepress/utils";
export default defineUserConfig({
dest: "./dist",
@@ -84,12 +85,12 @@ export default defineUserConfig({
})();`,
],
],
- // alias: {
- // "@theme-hope/components/NormalPage": path.resolve(
- // __dirname,
- // "./components/NormalPage.vue",
- // ),
- // },
+ alias: {
+ "@theme-hope/components/NormalPage": path.resolve(
+ __dirname,
+ "./components/NormalPage.vue",
+ ),
+ },
theme,
diff --git a/docs/.vuepress/navbar.ts b/docs/.vuepress/navbar.ts
index a67e5d2a..688db67e 100644
--- a/docs/.vuepress/navbar.ts
+++ b/docs/.vuepress/navbar.ts
@@ -1,8 +1,9 @@
import {navbar} from "vuepress-theme-hope";
export default navbar([
- {text: "好玩的", icon: "interesting", link: "/index"},
- {text: "Java", icon: "java", link: "/java"},
+ {text: "主页", icon: "home", link: "/"},
+ {text: "好玩的", icon: "interesting", link: "/interesting/"},
+ {text: "Java", icon: "java", link: "/java/"},
{text: "中间件", icon: "middleware", link: "/middleware/"},
{text: "数据库", icon: "database", link: "/database/"},
{text: "大数据", icon: "bigdata", link: "/bigdata/"},
diff --git a/docs/.vuepress/sidebar/index.ts b/docs/.vuepress/sidebar/index.ts
index 00d5e389..172da47f 100644
--- a/docs/.vuepress/sidebar/index.ts
+++ b/docs/.vuepress/sidebar/index.ts
@@ -15,6 +15,15 @@ import {systemDesign} from "./system-design";
import {java} from "./java.js";
export default sidebar({
+ // 必须放在最后面
+ "/": [
+ {
+ text: "首页",
+ icon: "home",
+ collapsible: false,
+ children: "structure"
+ },
+ ],
// 应该把更精确的路径放置在前边
"/interesting/": interesting,
"/java/": java,
@@ -35,14 +44,5 @@ export default sidebar({
"handwritten-rpc-framework",
"source-code-reading",
],
- // 必须放在最后面
- "/": [
- {
- text: "好玩的",
- icon: "interesting",
- collapsible: false,
- prefix: "interesting/",
- children: "structure"
- },
- ],
+
});
diff --git a/docs/.vuepress/sidebar/interesting.ts b/docs/.vuepress/sidebar/interesting.ts
index 6891f191..880c2902 100644
--- a/docs/.vuepress/sidebar/interesting.ts
+++ b/docs/.vuepress/sidebar/interesting.ts
@@ -3,6 +3,7 @@ import {arraySidebar} from "vuepress-theme-hope";
export const interesting = arraySidebar([
{
text: "好玩的",
+ icon: "interesting",
collapsible: false,
children: "structure"
},
diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts
index b2d3338d..412de0a6 100644
--- a/docs/.vuepress/theme.ts
+++ b/docs/.vuepress/theme.ts
@@ -42,34 +42,13 @@ export default hopeTheme({
intro: "/about-the-author/",
sidebarDisplay: "mobile",
medias: {
- Zhihu: "https://www.zhihu.com/people/javaZephery",
+ Zhihu: "https://www.zhihu.com/people/wen-zhi-huai-83",
Github: "https://github.com/Zephery",
Gitee: "https://gitee.com/zephery.com.cn"
},
},
plugins: {
- components: {
- rootComponents: {
- // https://plugin-components.vuejs.press/zh/Zephery/utilities/notice.html#%E7%94%A8%E6%B3%95
- notice: [
- // {
- // path: "/",
- // title: "Java学习路线最新版",
- // showOnce: true,
- // content:
- // "花了一个月零碎的时间,我根据当下 Java 后端求职和招聘的最新要求,对之前写的 Java 后端学习路线进行了全面的优化和改进。这可能是你所见过的最用心、最全面的 Java 后端学习路线,共 4w+ 字。",
- // actions: [
- // {
- // text: "免费获取",
- // link: "https://mp.weixin.qq.com/s/6nWgi22UT5Y7nJiPfQ_XIw",
- // type: "primary",
- // },
- // ],
- // },
- ],
- },
- },
blog: true,
copyright: {
author: "wenzhihuai.com",
diff --git a/docs/README.md b/docs/README.md
index 1bce2bde..335195e5 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1 +1,6 @@
-
\ No newline at end of file
+---
+home: true
+layout: BlogHome
+---
+
+
\ No newline at end of file
diff --git a/docs/interesting/README.md b/docs/interesting/README.md
new file mode 100644
index 00000000..a6763135
--- /dev/null
+++ b/docs/interesting/README.md
@@ -0,0 +1,3 @@
+# 好玩的
+
+
\ No newline at end of file
diff --git a/docs/java/README.md b/docs/java/README.md
index 941a1f85..faeb78e0 100644
--- a/docs/java/README.md
+++ b/docs/java/README.md
@@ -1 +1,7 @@
-# 简介
\ No newline at end of file
+---
+index: false
+---
+
+# Java
+
+
\ No newline at end of file