更新依赖到最新版本并迁移设置
This commit is contained in:
@@ -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,
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user