更新依赖到最新版本并迁移设置

This commit is contained in:
jjnwxs 2025-04-23 19:35:07 +08:00
parent 434cb19663
commit 4621c487c1
3 changed files with 89 additions and 66 deletions

View File

@ -18,5 +18,8 @@
"volta": {
"node": "20.11.0"
},
"packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677"
"packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677",
"dependencies": {
"mathjax-full": "^3.2.2"
}
}

66
pnpm-lock.yaml generated
View File

@ -7,6 +7,10 @@ settings:
importers:
.:
dependencies:
mathjax-full:
specifier: ^3.2.2
version: 3.2.2
devDependencies:
'@vuepress/bundler-vite':
specifier: 2.0.0-rc.21
@ -19,7 +23,7 @@ importers:
version: 2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13)
vuepress-theme-hope:
specifier: 2.0.0-rc.82
version: 2.0.0-rc.82(markdown-it@14.1.0)(sass@1.86.3)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
version: 2.0.0-rc.82(markdown-it@14.1.0)(mathjax-full@3.2.2)(sass@1.86.3)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
packages:
@ -1027,6 +1031,10 @@ packages:
peerDependencies:
vue: ^3.5.0
'@xmldom/xmldom@0.9.8':
resolution: {integrity: sha512-p96FSY54r+WJ50FIOsCOjyj/wavs8921hG5+kVMmZgKcvIKxMXHTrjNJvRgWa/zuX3B6t2lijLNFaOyuxUH+2A==}
engines: {node: '>=14.6'}
ansi-regex@5.0.1:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
@ -1256,6 +1264,10 @@ packages:
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
engines: {node: '>=6'}
esm@3.2.25:
resolution: {integrity: sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==}
engines: {node: '>=6'}
esprima@4.0.1:
resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
engines: {node: '>=4'}
@ -1493,6 +1505,9 @@ packages:
resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}
hasBin: true
mathjax-full@3.2.2:
resolution: {integrity: sha512-+LfG9Fik+OuI8SLwsiR02IVdjcnRCy5MufYLi0C3TdMT56L/pjB0alMVGgoWJF8pN9Rc7FESycZB9BMNWIid5w==}
mdast-util-to-hast@13.2.0:
resolution: {integrity: sha512-QGYKEuUsYT9ykKBCMOEDLsU5JRObWQusAolFMeko/tYPufNkRffBAQjIE+99jbA87xv6FgmjLtwjh9wBWajwAA==}
@ -1503,6 +1518,9 @@ packages:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
mhchemparser@4.2.1:
resolution: {integrity: sha512-kYmyrCirqJf3zZ9t/0wGgRZ4/ZJw//VwaRVGA75C4nhE60vtnIzhl9J9ndkX/h6hxSN7pjg/cE0VxbnNM+bnDQ==}
micromark-util-character@2.1.1:
resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==}
@ -1529,6 +1547,9 @@ packages:
mitt@3.0.1:
resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==}
mj-context-menu@0.6.1:
resolution: {integrity: sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==}
ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
@ -1785,6 +1806,10 @@ packages:
resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==}
engines: {node: '>=0.10.0'}
speech-rule-engine@4.1.2:
resolution: {integrity: sha512-S6ji+flMEga+1QU79NDbwZ8Ivf0S/MpupQQiIC0rTpU/ZTKgcajijJJb1OcByBQDjrXCN1/DJtGz4ZJeBMPGJw==}
hasBin: true
sprintf-js@1.0.3:
resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
@ -2113,6 +2138,9 @@ packages:
engines: {node: '>= 8'}
hasBin: true
wicked-good-xpath@1.3.0:
resolution: {integrity: sha512-Gd9+TUn5nXdwj/hFsPVx5cuHHiF5Bwuc30jZ4+ronF1qHK5O7HD0sgmXWSEgwKquT3ClLoKPVbO6qGwVwLzvAw==}
wrap-ansi@6.2.0:
resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}
engines: {node: '>=8'}
@ -2381,13 +2409,14 @@ snapshots:
optionalDependencies:
markdown-it: 14.1.0
'@mdit/plugin-mathjax-slim@0.16.0(markdown-it@14.1.0)':
'@mdit/plugin-mathjax-slim@0.16.0(markdown-it@14.1.0)(mathjax-full@3.2.2)':
dependencies:
'@mdit/plugin-tex': 0.16.0(markdown-it@14.1.0)
'@types/markdown-it': 14.1.2
upath: 2.0.1
optionalDependencies:
markdown-it: 14.1.0
mathjax-full: 3.2.2
'@mdit/plugin-plantuml@0.16.0(markdown-it@14.1.0)':
dependencies:
@ -3025,14 +3054,16 @@ snapshots:
- markdown-it
- typescript
'@vuepress/plugin-markdown-math@2.0.0-rc.95(markdown-it@14.1.0)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))':
'@vuepress/plugin-markdown-math@2.0.0-rc.95(markdown-it@14.1.0)(mathjax-full@3.2.2)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))':
dependencies:
'@mdit/plugin-katex-slim': 0.16.7(markdown-it@14.1.0)
'@mdit/plugin-mathjax-slim': 0.16.0(markdown-it@14.1.0)
'@mdit/plugin-mathjax-slim': 0.16.0(markdown-it@14.1.0)(mathjax-full@3.2.2)
'@types/markdown-it': 14.1.2
'@vuepress/helper': 2.0.0-rc.94(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
vue: 3.5.13
vuepress: 2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13)
optionalDependencies:
mathjax-full: 3.2.2
transitivePeerDependencies:
- markdown-it
- typescript
@ -3199,6 +3230,8 @@ snapshots:
dependencies:
vue: 3.5.13
'@xmldom/xmldom@0.9.8': {}
ansi-regex@5.0.1: {}
ansi-regex@6.1.0: {}
@ -3438,6 +3471,8 @@ snapshots:
escalade@3.2.0: {}
esm@3.2.25: {}
esprima@4.0.1: {}
estree-walker@2.0.2: {}
@ -3714,6 +3749,13 @@ snapshots:
punycode.js: 2.3.1
uc.micro: 2.1.0
mathjax-full@3.2.2:
dependencies:
esm: 3.2.25
mhchemparser: 4.2.1
mj-context-menu: 0.6.1
speech-rule-engine: 4.1.2
mdast-util-to-hast@13.2.0:
dependencies:
'@types/hast': 3.0.4
@ -3730,6 +3772,8 @@ snapshots:
merge2@1.4.1: {}
mhchemparser@4.2.1: {}
micromark-util-character@2.1.1:
dependencies:
micromark-util-symbol: 2.0.1
@ -3756,6 +3800,8 @@ snapshots:
mitt@3.0.1: {}
mj-context-menu@0.6.1: {}
ms@2.1.3: {}
nanoid@3.3.11: {}
@ -4009,6 +4055,12 @@ snapshots:
speakingurl@14.0.1: {}
speech-rule-engine@4.1.2:
dependencies:
'@xmldom/xmldom': 0.9.8
commander: 13.1.0
wicked-good-xpath: 1.3.0
sprintf-js@1.0.3: {}
stdin-discarder@0.2.2: {}
@ -4198,7 +4250,7 @@ snapshots:
transitivePeerDependencies:
- typescript
vuepress-theme-hope@2.0.0-rc.82(markdown-it@14.1.0)(sass@1.86.3)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13)):
vuepress-theme-hope@2.0.0-rc.82(markdown-it@14.1.0)(mathjax-full@3.2.2)(sass@1.86.3)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13)):
dependencies:
'@vuepress/helper': 2.0.0-rc.94(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-active-header-links': 2.0.0-rc.94(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
@ -4215,7 +4267,7 @@ snapshots:
'@vuepress/plugin-markdown-hint': 2.0.0-rc.94(markdown-it@14.1.0)(vue@3.5.13)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-markdown-image': 2.0.0-rc.94(markdown-it@14.1.0)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-markdown-include': 2.0.0-rc.94(markdown-it@14.1.0)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-markdown-math': 2.0.0-rc.95(markdown-it@14.1.0)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-markdown-math': 2.0.0-rc.95(markdown-it@14.1.0)(mathjax-full@3.2.2)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-markdown-stylize': 2.0.0-rc.94(markdown-it@14.1.0)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-markdown-tab': 2.0.0-rc.96(markdown-it@14.1.0)(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
'@vuepress/plugin-notice': 2.0.0-rc.94(vuepress@2.0.0-rc.21(@vuepress/bundler-vite@2.0.0-rc.21(@types/node@22.14.1)(sass@1.86.3)(yaml@2.7.1))(vue@3.5.13))
@ -4293,6 +4345,8 @@ snapshots:
dependencies:
isexe: 2.0.0
wicked-good-xpath@1.3.0: {}
wrap-ansi@6.2.0:
dependencies:
ansi-styles: 4.3.0

View File

@ -3,15 +3,13 @@ import navbar from "./navbar.js";
import sidebar from "./sidebar.js";
export default hopeTheme({
hostname: "http://szhh.hr98.net/",
hostname: "https://sp.jjnwxs.cn",
author: {
name: "荆棘鸟文学社",
url: "https://github.com/szhhwh/",
url: "https://gitee.com/jjnwxs_official/jingji_spbook_vue",
},
iconAssets: "fontawesome-with-brands",
logo: "/logo.png",
logoDark: '/logo-dark.png',
@ -37,65 +35,33 @@ export default hopeTheme({
displayFooter: true,
// encrypt: {
// config: {
// "/demo/encrypt.html": ["1234"],
// },
// },
// page meta
metaLocales: {
editLink: "在 GitHub 上编辑此页",
editLink: "在 Gitee 上查看此页",
},
plugins: {
// You should generate and use your own comment service
// comment: {
// provider: "Giscus",
// repo: "vuepress-theme-hope/giscus-discussions",
// repoId: "R_kgDOG_Pt2A",
// category: "Announcements",
// categoryId: "DIC_kwDOG_Pt2M4COD69",
// },
// All features are enabled for demo, only preserve features you need here
mdEnhance: {
align: false,
attrs: false,
chart: false,
codetabs: false,
demo: false,
echarts: false,
figure: true,
flowchart: false,
gfm: true,
imgLazyload: true,
imgSize: true,
include: true,
katex: false,
mark: true,
mermaid: false,
playground: {
presets: ["ts", "vue"],
},
stylize: [
{
matcher: "Recommended",
replacer: ({ tag }) => {
if (tag === "em")
return {
tag: "Badge",
attrs: { type: "tip" },
content: "Recommended",
};
},
},
],
sub: true,
sup: true,
tabs: true,
vPre: true,
vuePlayground: false,
},
icon: {assets: "fontawesome"}
},
markdown: {
include: true,
vPre: true,
figure: true,
imgLazyload: true,
imgSize: true,
math: true,
codeTabs: false,
tabs: true,
align: false,
attrs: false,
mark: true,
sub: true,
sup: true,
chartjs: false,
demo: false,
echarts: false,
flowchart: false,
mermaid: false,
vuePlayground: false,
}
});