import { hopeTheme } from "vuepress-theme-hope"; import { zhNavbar } from "./navbar"; import { zhSidebar } from "./sidebar"; export default hopeTheme({ hostname: "https://mapstruct.plus", // 是否显示打印按钮 print: false, author: { name: "linpeilie", url: "https://github.com/linpeilie", }, iconAssets: "iconfont", // logo: "/logo.svg", repo: "linpeilie/mapstruct", docsDir: 'docs', docsBranch: 'docs', locales: { "/": { // navbar navbar: zhNavbar, // sidebar sidebar: zhSidebar, // footer: "默认页脚", displayFooter: true, // page meta metaLocales: { editLink: "在 GitHub 上编辑此页", }, }, }, plugins: { copyCode: { showInMobile: false }, // all features are enabled for demo, only preserve features you need here mdEnhance: { align: true, attrs: true, chart: true, codetabs: true, container: true, demo: true, echarts: false, figure: true, flowchart: false, gfm: true, imgLazyload: true, imgMark: true, imgSize: true, include: true, katex: true, mark: true, mermaid: true, playground: { presets: ["ts", "vue"], }, presentation: { plugins: ["highlight", "math", "search", "notes", "zoom"], }, 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: true, } }, });