更新任务
This commit is contained in:
1 parent
120a57ad57
commit
6118a80ac4
279 files changed
+9682
-2362
No files matched your search
@@ -0,0 +1,85 @@
|
||||
import { defineConfig, type SiteConfig } from 'vitepress'
|
||||
// 自动导入 TDesign
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import { TDesignResolver } from 'unplugin-vue-components/resolvers'
|
||||
|
||||
import { handleHeadMeta } from '../theme/utils/handleHeadMeta'
|
||||
import { search as zhSearch } from './zh'
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
lastUpdated: true,
|
||||
cleanUrls: true,
|
||||
ignoreDeadLinks: true,
|
||||
sitemap: {
|
||||
hostname: 'https://duyl328.github.io',
|
||||
},
|
||||
base: 'https://duyl328.github.io',
|
||||
head: [
|
||||
// 谷歌分析,暂不使用
|
||||
// ['script',
|
||||
// {
|
||||
// async: '',
|
||||
// src: 'https://www.googletagmanager.com/gtag/js?id=G-MB7XVBG1TQ',
|
||||
// }],
|
||||
// [
|
||||
// 'script',
|
||||
// {},
|
||||
// `window.dataLayer = window.dataLayer || [];
|
||||
// function gtag(){dataLayer.push(arguments);}
|
||||
// gtag('js', new Date());
|
||||
// gtag('config', 'G-MB7XVBG1TQ');`,
|
||||
// ],
|
||||
|
||||
[
|
||||
'link',
|
||||
{
|
||||
rel: 'icon',
|
||||
// href: '',
|
||||
},
|
||||
],
|
||||
],
|
||||
// https://vitepress.dev/reference/site-config#transformhead
|
||||
async transformHead (context) {
|
||||
return handleHeadMeta(context)
|
||||
},
|
||||
buildEnd: (config: SiteConfig) => {
|
||||
},
|
||||
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
outline: [2, 4],
|
||||
|
||||
search: {
|
||||
provider: 'local',
|
||||
options: {
|
||||
locales: { ...zhSearch },
|
||||
},
|
||||
},
|
||||
|
||||
externalLinkIcon: true,
|
||||
},
|
||||
|
||||
markdown: {
|
||||
math: true,
|
||||
},
|
||||
|
||||
vite: {
|
||||
plugins: [
|
||||
// ...
|
||||
AutoImport({
|
||||
resolvers: [
|
||||
TDesignResolver({
|
||||
library: 'vue-next',
|
||||
})],
|
||||
}),
|
||||
Components({
|
||||
resolvers: [
|
||||
TDesignResolver({
|
||||
library: 'vue-next',
|
||||
})],
|
||||
}),
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user