1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #2034 from Mister-Hope/main

chore: update deps
This commit is contained in:
Guide 2023-05-31 20:59:46 +08:00 committed by GitHub
commit 46b48e2786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1928 additions and 1071 deletions

View File

@ -1,3 +1,4 @@
import { cut } from "nodejs-jieba";
import { defineUserConfig } from "vuepress"; import { defineUserConfig } from "vuepress";
import { searchProPlugin } from "vuepress-plugin-search-pro"; import { searchProPlugin } from "vuepress-plugin-search-pro";
@ -9,6 +10,7 @@ export default defineUserConfig({
title: "JavaGuide(Java面试 + 学习指南)", title: "JavaGuide(Java面试 + 学习指南)",
description: description:
"「Java学习指北 + Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide ", "「Java学习指北 + Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide ",
lang: "zh-CN",
head: [ head: [
// meta // meta
@ -44,18 +46,27 @@ export default defineUserConfig({
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})();`, })();`,
], ],
["link", { rel: "icon", href: "/favicon.ico" }],
], ],
locales: {
"/": {
lang: "zh-CN",
},
},
theme, 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"], pagePatterns: ["**/*.md", "!**/*.snippet.md", "!.vuepress", "!node_modules"],

View File

@ -7,8 +7,9 @@ import sidebar from "./sidebar/index.js";
const __dirname = getDirname(import.meta.url); const __dirname = getDirname(import.meta.url);
export default hopeTheme({ export default hopeTheme({
logo: "/logo.png",
hostname: "https://javaguide.cn/", hostname: "https://javaguide.cn/",
logo: "/logo.png",
favicon: "/favicon.ico",
iconAssets: "//at.alicdn.com/t/c/font_2922463_kweia6fbo9.css", iconAssets: "//at.alicdn.com/t/c/font_2922463_kweia6fbo9.css",

View File

@ -5,7 +5,6 @@
"description": "javaguide", "description": "javaguide",
"license": "MIT", "license": "MIT",
"author": "Guide", "author": "Guide",
"packageManager": "pnpm@8.5.1",
"scripts": { "scripts": {
"docs:build": "vuepress build docs", "docs:build": "vuepress build docs",
"docs:dev": "vuepress dev docs", "docs:dev": "vuepress dev docs",
@ -20,16 +19,18 @@
"markdownlint" "markdownlint"
] ]
}, },
"packageManager": "pnpm@8.6.0",
"dependencies": { "dependencies": {
"@vuepress/client": "2.0.0-beta.62", "@vuepress/client": "2.0.0-beta.62",
"@vuepress/utils": "2.0.0-beta.62", "@vuepress/utils": "2.0.0-beta.62",
"husky": "8.0.3", "husky": "8.0.3",
"markdownlint-cli": "0.34.0", "markdownlint-cli": "0.34.0",
"nano-staged": "0.8.0", "nano-staged": "0.8.0",
"nodejs-jieba": "0.0.2",
"prettier": "2.8.8", "prettier": "2.8.8",
"vue": "3.3.2", "vue": "3.3.4",
"vuepress": "2.0.0-beta.62", "vuepress": "2.0.0-beta.62",
"vuepress-plugin-search-pro": "2.0.0-beta.211", "vuepress-plugin-search-pro": "2.0.0-beta.217",
"vuepress-theme-hope": "2.0.0-beta.211" "vuepress-theme-hope": "2.0.0-beta.217"
} }
} }

2958
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff