import { hopeTheme } from "vuepress-theme-hope"; import navbar from "./navbar.js"; import sidebar from "./sidebar.js"; export default hopeTheme({ hostname: "http://localhost:8080/home", author: { name: "aixiao", url: "https://aixiao.me", }, iconAssets: "fontawesome-with-brands", // logo // logo: "/logo.png", // 暗黑模式logo // logoDark: "/logo.png", /** * 深色模式 */ darkmode: "switch", /** * 项目仓库配置 */ // 默认为 GitHub. 同时也可以是一个完整的 URL repo: "https://github.com/niuyuling/Blueberry", // 自定义仓库链接文字。默认从 `repo` 中自动推断为 // "GitHub" / "GitLab" / "Gitee" / "Bitbucket" 其中之一,或是 "Source"。 repoLabel: "Source", // 是否在导航栏内显示仓库链接,默认为 `true` repoDisplay: true, docsDir: "src", // navbar navbar, // sidebar sidebar, footer: "使用 VuePress Theme Hope 主题", displayFooter: true, encrypt: { config: { "/demo/encrypt.html": ["1234"], }, }, editLink: false, // page meta metaLocales: { editLink: "在 GitHub 上编辑此页", }, plugins: { // You should generate and use your own comment service // 关闭评论功能 comment: false, // 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, }, // uncomment these if you want a pwa // pwa: { // favicon: "/favicon.ico", // cacheHTML: true, // cachePic: true, // appendBase: true, // apple: { // icon: "/assets/icon/apple-icon-152.png", // statusBarColor: "black", // }, // msTile: { // image: "/assets/icon/ms-icon-144.png", // color: "#ffffff", // }, // manifest: { // icons: [ // { // src: "/assets/icon/chrome-mask-512.png", // sizes: "512x512", // purpose: "maskable", // type: "image/png", // }, // { // src: "/assets/icon/chrome-mask-192.png", // sizes: "192x192", // purpose: "maskable", // type: "image/png", // }, // { // src: "/assets/icon/chrome-512.png", // sizes: "512x512", // type: "image/png", // }, // { // src: "/assets/icon/chrome-192.png", // sizes: "192x192", // type: "image/png", // }, // ], // shortcuts: [ // { // name: "Demo", // short_name: "Demo", // url: "/demo/", // icons: [ // { // src: "/assets/icon/guide-maskable.png", // sizes: "192x192", // purpose: "maskable", // type: "image/png", // }, // ], // }, // ], // }, // }, }, });