Skip to content

Commit edc230a

Browse files
committed
chore: update deps
1 parent e5f022d commit edc230a

File tree

5 files changed

+1909
-1052
lines changed

5 files changed

+1909
-1052
lines changed

docs/.vuepress/config.ts

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { cut } from "nodejs-jieba";
12
import { defineUserConfig } from "vuepress";
23
import { searchProPlugin } from "vuepress-plugin-search-pro";
34

@@ -9,6 +10,7 @@ export default defineUserConfig({
910
title: "JavaGuide(Java面试 + 学习指南)",
1011
description:
1112
"「Java学习指北 + Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide! ",
13+
lang: "zh-CN",
1214

1315
head: [
1416
// meta
@@ -44,18 +46,27 @@ export default defineUserConfig({
4446
s.parentNode.insertBefore(hm, s);
4547
})();`,
4648
],
47-
["link", { rel: "icon", href: "/favicon.ico" }],
4849
],
4950

50-
locales: {
51-
"/": {
52-
lang: "zh-CN",
53-
},
54-
},
55-
5651
theme,
5752

58-
plugins: [searchProPlugin({ indexContent: true })],
53+
plugins: [
54+
searchProPlugin({
55+
indexContent: true,
56+
indexOptions: {
57+
tokenize: (text, fieldName) =>
58+
fieldName === "id" ? [text] : cut(text, true),
59+
},
60+
customFields: [
61+
{
62+
getter: ({ frontmatter }) =>
63+
<string | undefined>frontmatter.category ?? null,
64+
formatter: "分类: $content",
65+
},
66+
],
67+
suggestDelay: 60,
68+
}),
69+
],
5970

6071
pagePatterns: ["**/*.md", "!**/*.snippet.md", "!.vuepress", "!node_modules"],
6172

docs/.vuepress/theme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import sidebar from "./sidebar/index.js";
77
const __dirname = getDirname(import.meta.url);
88

99
export default hopeTheme({
10-
logo: "/logo.png",
1110
hostname: "https://javaguide.cn/",
11+
logo: "/logo.png",
12+
favicon: "/favicon.ico",
1213

1314
iconAssets: "//at.alicdn.com/t/c/font_2922463_kweia6fbo9.css",
1415

docs/books/database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ GitHub 上也已经有大佬用 Java 实现过一个简易的数据库,介绍
9797
如果你要学习 Redis 的话,强烈推荐下面这两本书:
9898

9999
- [《Redis 设计与实现》](https://book.douban.com/subject/25900156/) :主要是 Redis 理论知识相关的内容,比较全面。我之前写过一篇文章 [《7 年前,24 岁,出版了一本 Redis 神书》](https://mp.weixin.qq.com/s?__biz=Mzg2OTA0Njk0OA==&mid=2247507030&idx=1&sn=0a5fd669413991b30163ab6f5834a4ad&chksm=cea1939df9d61a8b93925fae92f4cee0838c449534e60731cfaf533369831192e296780b32a6&token=709354671&lang=zh_CN&scene=21#wechat_redirect) 来介绍这本书。
100-
- [《Redis 核心原理与实践》 ](https://book.douban.com/subject/26612779/):主要是结合源码来分析 Redis 的重要知识点比如各种数据结构和高级特性。
100+
- [《Redis 核心原理与实践》](https://book.douban.com/subject/26612779/):主要是结合源码来分析 Redis 的重要知识点比如各种数据结构和高级特性。
101101

102102
![《Redis 设计与实现》和《Redis 设计与实现》](https://oss.javaguide.cn/github/javaguide/books/redis-books.png)
103103

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"description": "javaguide",
66
"license": "MIT",
77
"author": "Guide",
8-
"packageManager": "pnpm@8.5.1",
98
"scripts": {
109
"docs:build": "vuepress build docs",
1110
"docs:dev": "vuepress dev docs",
@@ -20,16 +19,18 @@
2019
"markdownlint"
2120
]
2221
},
22+
"packageManager": "pnpm@8.6.0",
2323
"dependencies": {
2424
"@vuepress/client": "2.0.0-beta.62",
2525
"@vuepress/utils": "2.0.0-beta.62",
2626
"husky": "8.0.3",
2727
"markdownlint-cli": "0.34.0",
2828
"nano-staged": "0.8.0",
29+
"nodejs-jieba": "0.0.2",
2930
"prettier": "2.8.8",
30-
"vue": "3.3.2",
31+
"vue": "3.3.4",
3132
"vuepress": "2.0.0-beta.62",
32-
"vuepress-plugin-search-pro": "2.0.0-beta.211",
33-
"vuepress-theme-hope": "2.0.0-beta.211"
33+
"vuepress-plugin-search-pro": "2.0.0-beta.217",
34+
"vuepress-theme-hope": "2.0.0-beta.217"
3435
}
3536
}

0 commit comments

Comments
 (0)