152 lines
3.4 KiB
TypeScript
152 lines
3.4 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,
|
|
chart: true,
|
|
codetabs: true,
|
|
demo: false,
|
|
echarts: true,
|
|
figure: true,
|
|
flowchart: false,
|
|
gfm: true,
|
|
imgLazyload: true,
|
|
imgSize: true,
|
|
include: true,
|
|
katex: true,
|
|
mark: true,
|
|
mermaid: true,
|
|
playground: {
|
|
presets: ["ts", "vue"],
|
|
},
|
|
presentation: ["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: false,
|
|
},
|
|
|
|
// 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",
|
|
// },
|
|
// ],
|
|
// },
|
|
// ],
|
|
// },
|
|
// },
|
|
},
|
|
});
|