mirror of
https://gitee.com/easii/mapstruct-plus.git
synced 2025-12-06 17:18:43 +08:00
42 lines
948 B
TypeScript
42 lines
948 B
TypeScript
import {defineUserConfig} from "vuepress";
|
|
import {shikiPlugin} from "@vuepress/plugin-shiki";
|
|
import {searchPlugin} from "@vuepress/plugin-search";
|
|
import theme from "./theme.js";
|
|
|
|
export default defineUserConfig({
|
|
base: "/",
|
|
|
|
head: [['script', {}, `
|
|
<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);
|
|
})();
|
|
</script>
|
|
|
|
`]],
|
|
|
|
locales: {
|
|
"/": {
|
|
lang: "zh-CN",
|
|
title: "MapstructPlus",
|
|
description: "MapstructPlus指南",
|
|
},
|
|
},
|
|
|
|
theme,
|
|
|
|
plugins: [
|
|
shikiPlugin({
|
|
// theme: 'github-dark-dimmed'
|
|
theme: 'material-theme-darker'
|
|
}),
|
|
searchPlugin({
|
|
isSearchable: (page) => page.path !== '/'
|
|
})
|
|
]
|
|
});
|