mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
99 lines
2.5 KiB
TypeScript
99 lines
2.5 KiB
TypeScript
import { defineThemeConfig } from "vuepress-theme-hope";
|
|
import { navbarConfig } from "./navbar";
|
|
import { sidebarConfig } from "./sidebar";
|
|
|
|
export default defineThemeConfig({
|
|
logo: "/logo.png",
|
|
hostname: "https://javaguide.cn/",
|
|
author: "Guide哥",
|
|
repo: "https://github.com/Snailclimb/JavaGuide",
|
|
docsDir: "docs",
|
|
iconPrefix: "iconfont icon-",
|
|
pure: true,
|
|
navbar: navbarConfig,
|
|
sidebar: sidebarConfig,
|
|
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",
|
|
},
|
|
},
|
|
footer:
|
|
'<a href="https://beian.miit.gov.cn/" target="_blank">鄂ICP备2020015769号-1</a>',
|
|
displayFooter: true,
|
|
plugins: {
|
|
blog: {
|
|
autoExcerpt: true,
|
|
},
|
|
mdEnhance: {
|
|
enableAll: false,
|
|
presentation: {
|
|
plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
},
|
|
},
|
|
pwa: {
|
|
favicon: "/favicon.ico",
|
|
cachePic: false,
|
|
cacheHTML: false,
|
|
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: "Guide",
|
|
short_name: "Guide",
|
|
url: "/guide/",
|
|
icons: [
|
|
{
|
|
src: "/assets/icon/guide-maskable.png",
|
|
sizes: "192x192",
|
|
purpose: "maskable",
|
|
type: "image/png",
|
|
},
|
|
{
|
|
src: "/assets/icon/guide-monochrome.png",
|
|
sizes: "192x192",
|
|
purpose: "monochrome",
|
|
type: "image/png",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
});
|