mirror of
https://gitee.com/easii/mapstruct-plus.git
synced 2025-12-07 01:28:31 +08:00
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import {defineUserConfig} from "vuepress";
|
|
import {shikiPlugin} from "@vuepress/plugin-shiki";
|
|
import {searchPlugin} from "@vuepress/plugin-search";
|
|
import {googleAnalyticsPlugin} from "@vuepress/plugin-google-analytics"
|
|
import theme from "./theme.js";
|
|
|
|
export default defineUserConfig({
|
|
base: "/",
|
|
|
|
head: [['script', {}, `
|
|
var _hmt = _hmt || [];
|
|
(function() {
|
|
var hm = document.createElement("script");
|
|
hm.src = "https://hm.baidu.com/hm.js?fab881821b3db8a7c460db1c91ea0f3a";
|
|
var s = document.getElementsByTagName("script")[0];
|
|
s.parentNode.insertBefore(hm, s);
|
|
})();
|
|
`]],
|
|
|
|
locales: {
|
|
"/": {
|
|
lang: "zh-CN",
|
|
title: "MapstructPlus",
|
|
description: "MapstructPlus指南",
|
|
},
|
|
},
|
|
|
|
theme,
|
|
|
|
plugins: [
|
|
shikiPlugin({
|
|
theme: 'one-dark-pro'
|
|
}),
|
|
searchPlugin({
|
|
isSearchable: (page) => page.path !== '/'
|
|
}),
|
|
googleAnalyticsPlugin({
|
|
id: 'G-SXEZVNR8FZ'
|
|
})
|
|
]
|
|
});
|