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

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

@@ -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,
}
});