Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihuaiwen committed May 18, 2024
1 parent 012a78b commit 8aa0425
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 42 deletions.
13 changes: 7 additions & 6 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions docs/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
@@ -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/"},
Expand Down
20 changes: 10 additions & 10 deletions docs/.vuepress/sidebar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -35,14 +44,5 @@ export default sidebar({
"handwritten-rpc-framework",
"source-code-reading",
],
// 必须放在最后面
"/": [
{
text: "好玩的",
icon: "interesting",
collapsible: false,
prefix: "interesting/",
children: "structure"
},
],

});
1 change: 1 addition & 0 deletions docs/.vuepress/sidebar/interesting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {arraySidebar} from "vuepress-theme-hope";
export const interesting = arraySidebar([
{
text: "好玩的",
icon: "interesting",
collapsible: false,
children: "structure"
},
Expand Down
23 changes: 1 addition & 22 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
<AutoCatalog />
---
home: true
layout: BlogHome
---

<Catalog/>
3 changes: 3 additions & 0 deletions docs/interesting/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 好玩的

<Catalog/>
8 changes: 7 additions & 1 deletion docs/java/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# 简介
---
index: false
---

# Java

<Catalog/>

0 comments on commit 8aa0425

Please sign in to comment.