Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { cut } from "nodejs-jieba";
import { defineUserConfig } from "vuepress";
import { searchProPlugin } from "vuepress-plugin-search-pro";

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

head: [
// meta
Expand Down Expand Up @@ -44,18 +46,27 @@ export default defineUserConfig({
s.parentNode.insertBefore(hm, s);
})();`,
],
["link", { rel: "icon", href: "/favicon.ico" }],
],

locales: {
"/": {
lang: "zh-CN",
},
},

theme,

plugins: [searchProPlugin({ indexContent: true })],
plugins: [
searchProPlugin({
indexContent: true,
indexOptions: {
tokenize: (text, fieldName) =>
fieldName === "id" ? [text] : cut(text, true),
},
customFields: [
{
getter: ({ frontmatter }) =>
<string | undefined>frontmatter.category ?? null,
formatter: "分类: $content",
},
],
suggestDelay: 60,
}),
],

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

Expand Down
3 changes: 2 additions & 1 deletion docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import sidebar from "./sidebar/index.js";
const __dirname = getDirname(import.meta.url);

export default hopeTheme({
logo: "/logo.png",
hostname: "https://javaguide.cn/",
logo: "/logo.png",
favicon: "/favicon.ico",

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

Expand Down
2 changes: 1 addition & 1 deletion docs/books/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ GitHub 上也已经有大佬用 Java 实现过一个简易的数据库,介绍
如果你要学习 Redis 的话,强烈推荐下面这两本书:

- [《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) 来介绍这本书。
- [《Redis 核心原理与实践》 ](https://book.douban.com/subject/26612779/):主要是结合源码来分析 Redis 的重要知识点比如各种数据结构和高级特性。
- [《Redis 核心原理与实践》](https://book.douban.com/subject/26612779/):主要是结合源码来分析 Redis 的重要知识点比如各种数据结构和高级特性。

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

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"description": "javaguide",
"license": "MIT",
"author": "Guide",
"packageManager": "pnpm@8.5.1",
"scripts": {
"docs:build": "vuepress build docs",
"docs:dev": "vuepress dev docs",
Expand All @@ -20,16 +19,18 @@
"markdownlint"
]
},
"packageManager": "pnpm@8.6.0",
"dependencies": {
"@vuepress/client": "2.0.0-beta.62",
"@vuepress/utils": "2.0.0-beta.62",
"husky": "8.0.3",
"markdownlint-cli": "0.34.0",
"nano-staged": "0.8.0",
"nodejs-jieba": "0.0.2",
"prettier": "2.8.8",
"vue": "3.3.2",
"vue": "3.3.4",
"vuepress": "2.0.0-beta.62",
"vuepress-plugin-search-pro": "2.0.0-beta.211",
"vuepress-theme-hope": "2.0.0-beta.211"
"vuepress-plugin-search-pro": "2.0.0-beta.217",
"vuepress-theme-hope": "2.0.0-beta.217"
}
}
Loading