import { getDirname, path } from "@vuepress/utils"; import { hopeTheme } from "vuepress-theme-hope"; import navbar from "./navbar.js"; import sidebar from "./sidebar/index.js"; const __dirname = getDirname(import.meta.url); export default hopeTheme({ logo: "/logo.png", hostname: "https://javaguide.cn/", iconAssets: "//at.alicdn.com/t/c/font_2922463_9aayheyb3v7.css", author: { name: "Guide", url: "https://javaguide.cn/article/", }, repo: "https://github.com/Snailclimb/JavaGuide", docsDir: "docs", // 纯净模式:https://theme-hope.vuejs.press/zh/guide/interface/pure.html pure: true, breadcrumb: false, navbar, sidebar, footer: '鄂ICP备2020015769号-1', displayFooter: true, pageInfo: [ "Author", "Category", "Tag", "Date", "Original", "Word", "ReadingTime", ], blog: { intro: "/about-the-author/", sidebarDisplay: "mobile", medias: { Zhihu: "https://www.zhihu.com/people/javaguide", Github: "https://github.com/Snailclimb", Gitee: "https://gitee.com/SnailClimb", }, }, plugins: { blog: true, copyright: true, mdEnhance: { align: true, codetabs: true, container: true, figure: true, include: { resolvePath: (file, cwd) => { if (file.startsWith("@")) return path.resolve( __dirname, "../snippets", file.replace("@", "./") ); return path.resolve(cwd, file); }, }, tasklist: true, }, feed: { atom: true, json: true, rss: true, }, }, });