Skip to content

Commit 566c75d

Browse files
authored
Merge pull request Snailclimb#1993 from Mister-Hope/update
feat: update deps and switch to pnpm
2 parents 675d97c + fac0c76 commit 566c75d

File tree

17 files changed

+6303
-298
lines changed

17 files changed

+6303
-298
lines changed

.gitignore

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
/node_modules
2-
/package-lock.json
1+
node_modules/
32
# *.drawio
43
*.drawio.bkp
54
.DS_Store
65
# VS Code Config file
76
.vscode/
8-
# Vuepress Cache
9-
.cache/
10-
# Vuepress Temp
11-
.temp/
12-
# Vuepress Output
7+
# VuePress Cache
8+
**/.vuepress/.cache/
9+
# VuePress Temp
10+
**/.vuepress/.temp/
11+
# VuePress Output
1312
dist/
1413
# Build files
1514
packages/*/lib/

docs/.vuepress/config.ts

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import { defineUserConfig } from "vuepress";
2-
import { themeConfig } from "./themeConfig";
3-
import { searchPlugin } from "@vuepress/plugin-search";
2+
import { searchProPlugin } from "vuepress-plugin-search-pro";
3+
4+
import theme from "./theme.js";
45

56
export default defineUserConfig({
67
dest: "./dist",
7-
theme: themeConfig,
8-
shouldPrefetch: false,
8+
99
title: "JavaGuide(Java面试+学习指南)",
1010
description:
1111
"「Java学习指北+Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide! ",
12+
1213
head: [
1314
// meta
1415
["meta", { name: "robots", content: "all" }],
@@ -43,28 +44,18 @@ export default defineUserConfig({
4344
s.parentNode.insertBefore(hm, s);
4445
})();`,
4546
],
46-
["link", { rel: "stylesheet", href: "/iconfont/iconfont.css" }],
4747
["link", { rel: "icon", href: "/favicon.ico" }],
4848
],
49+
4950
locales: {
5051
"/": {
5152
lang: "zh-CN",
5253
},
5354
},
54-
plugins: [
55-
searchPlugin({
56-
// https://v2.vuepress.vuejs.org/zh/reference/plugin/search.html
57-
// 排除首页
58-
isSearchable: (page) => page.path !== "/",
59-
maxSuggestions: 10,
60-
hotKeys: ["s", "/"],
61-
// 用于在页面的搜索索引中添加额外字段
62-
getExtraFields: () => [],
63-
locales: {
64-
"/": {
65-
placeholder: "搜索",
66-
},
67-
},
68-
}),
69-
],
55+
56+
theme,
57+
58+
plugins: [searchProPlugin({ indexContent: true })],
59+
60+
shouldPrefetch: false,
7061
});

docs/.vuepress/navbar.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import { navbar } from "vuepress-theme-hope";
22

3-
export const navbarConfig = navbar([
3+
export default navbar([
44
{ text: "面试指南", icon: "java", link: "/home.md" },
55
{ text: "知识星球", icon: "code", link: "/about-the-author/zhishixingqiu-two-years.md" },
66
{ text: "开源项目", icon: "github", link: "/open-source-project/" },
77
{ text: "技术书籍", icon: "book", link: "/books/" },
8-
{ text: "程序人生", icon: "article", link: "/high-quality-technical-articles/" },
8+
{
9+
text: "程序人生",
10+
icon: "article",
11+
link: "/high-quality-technical-articles/",
12+
},
913
{
1014
text: "网站相关",
1115
icon: "about",

docs/.vuepress/public/iconfont/iconfont.css

Lines changed: 0 additions & 223 deletions
This file was deleted.
-16.2 KB
Binary file not shown.
-11 KB
Binary file not shown.
-9.41 KB
Binary file not shown.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
export const aboutTheAuthor = [
1+
import { arraySidebar } from "vuepress-theme-hope";
2+
3+
export const aboutTheAuthor = arraySidebar([
24
{
35
text: "个人经历",
46
icon: "zuozhe",
5-
collapsable: false,
7+
collapsible: false,
68
children: [
79
"internet-addiction-teenager",
810
"my-college-life",
@@ -14,12 +16,12 @@ export const aboutTheAuthor = [
1416
{
1517
text: "杂谈",
1618
icon: "chat",
17-
collapsable: false,
19+
collapsible: false,
1820
children: [
1921
"writing-technology-blog-six-years",
2022
"my-article-was-stolen-and-made-into-video-and-it-became-popular",
2123
"dog-that-copies-other-people-essay",
2224
"zhishixingqiu-two-years",
2325
],
2426
},
25-
];
27+
]);

docs/.vuepress/sidebar/books.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const books = [
1+
import { arraySidebar } from "vuepress-theme-hope";
2+
3+
export const books = arraySidebar([
24
{
35
text: "计算机基础",
46
link: "cs-basics",
@@ -30,4 +32,4 @@ export const books = [
3032
link: "distributed-system",
3133
icon: "distributed-network",
3234
},
33-
];
35+
]);

0 commit comments

Comments
 (0)