Skip to content

Commit d9cc963

Browse files
committed
chore: vitepress ts config file
1 parent e7346ad commit d9cc963

4 files changed

Lines changed: 8 additions & 26 deletions

File tree

.vitepress/config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { metaData } from './constants'
2-
import { mdRenderFilename } from './markdown'
3-
import head from './head'
4-
import themeConfig from './theme'
1+
import { defineConfigWithTheme } from 'vitepress'
2+
import { metaData } from './config/constants'
3+
import { mdRenderFilename } from './config/markdown'
4+
import head from './config/head'
5+
import themeConfig from './config/theme'
56
import type { DefaultTheme } from '@/config'
6-
import type { UserConfig } from 'vitepress'
77

8-
const config: UserConfig<DefaultTheme.Config> = {
9-
title: 'Windi CSS',
8+
export default defineConfigWithTheme<DefaultTheme.Config>({
9+
title: metaData.title,
1010
description: metaData.description,
1111
head,
1212
themeConfig,
@@ -23,6 +23,4 @@ const config: UserConfig<DefaultTheme.Config> = {
2323
},
2424
},
2525
},
26-
}
27-
28-
export default config
26+
})

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@vue/compiler-sfc": "^3.2.31",
4444
"axios": "^0.26.0",
4545
"esbuild": "^0.14.24",
46-
"esbuild-register": "^3.3.2",
4746
"eslint": "^8.10.0",
4847
"eslint-plugin-markdown": "^2.2.1",
4948
"markdown-it": "^12.3.2",

pnpm-lock.yaml

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)