123 lines
2.6 KiB
TypeScript
123 lines
2.6 KiB
TypeScript
import { hopeTheme } from "vuepress-theme-hope";
|
|
import navbar from "./navbar.js";
|
|
import sidebar from "./sidebar.js";
|
|
|
|
export default hopeTheme({
|
|
hostname: "http://szhh.hr98.net/",
|
|
|
|
author: {
|
|
name: "狮子耗耗",
|
|
url: "https://github.com/szhhwh/",
|
|
},
|
|
|
|
iconAssets: "fontawesome-with-brands",
|
|
|
|
logo: "/logo.png",
|
|
logoDark: '/logo-dark.png',
|
|
|
|
repo: "szhhwh/jingji_TSreference_vue",
|
|
|
|
docsDir: "src",
|
|
|
|
// navbar
|
|
navbar,
|
|
|
|
// sidebar
|
|
sidebar,
|
|
|
|
footer: "荆棘鸟文学社美编部",
|
|
|
|
displayFooter: true,
|
|
|
|
// encrypt: {
|
|
// config: {
|
|
// "/demo/encrypt.html": ["1234"],
|
|
// },
|
|
// },
|
|
|
|
// page meta
|
|
metaLocales: {
|
|
editLink: "在 GitHub 上编辑此页",
|
|
},
|
|
|
|
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: true,
|
|
attrs: true,
|
|
codetabs: true,
|
|
component: true,
|
|
demo: true,
|
|
figure: true,
|
|
imgLazyload: true,
|
|
imgSize: true,
|
|
include: true,
|
|
mark: true,
|
|
stylize: [
|
|
{
|
|
matcher: "Recommended",
|
|
replacer: ({ tag }) => {
|
|
if (tag === "em")
|
|
return {
|
|
tag: "Badge",
|
|
attrs: { type: "tip" },
|
|
content: "Recommended",
|
|
};
|
|
},
|
|
},
|
|
],
|
|
sub: true,
|
|
sup: true,
|
|
tabs: true,
|
|
vPre: true,
|
|
|
|
// install chart.js before enabling it
|
|
// chart: true,
|
|
|
|
// insert component easily
|
|
|
|
// install echarts before enabling it
|
|
// echarts: true,
|
|
|
|
// install flowchart.ts before enabling it
|
|
// flowchart: true,
|
|
|
|
// gfm requires mathjax-full to provide tex support
|
|
// gfm: true,
|
|
|
|
// install katex before enabling it
|
|
// katex: true,
|
|
|
|
// install mathjax-full before enabling it
|
|
// mathjax: true,
|
|
|
|
// install mermaid before enabling it
|
|
// mermaid: true,
|
|
|
|
// playground: {
|
|
// presets: ["ts", "vue"],
|
|
// },
|
|
|
|
// install reveal.js before enabling it
|
|
// revealJs: {
|
|
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
// },
|
|
|
|
// install @vue/repl before enabling it
|
|
// vuePlayground: true,
|
|
|
|
// install sandpack-vue3 before enabling it
|
|
// sandpack: true,
|
|
},
|
|
},
|
|
});
|