docs: fix config path in guide/custom-theme.md (#3618)

pull/3626/head
Bairui Su 9 months ago committed by GitHub
parent 532389270b
commit 75bed4f836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -196,7 +196,7 @@ export default {
If the theme requires special VitePress config, you will need to also extend it in your own config:
```ts
// .vitepress/theme/config.ts
// .vitepress/config.ts
import baseConfig from 'awesome-vitepress-theme/config'
export default {
@ -208,7 +208,7 @@ export default {
Finally, if the theme provides types for its theme config:
```ts
// .vitepress/theme/config.ts
// .vitepress/config.ts
import baseConfig from 'awesome-vitepress-theme/config'
import { defineConfigWithTheme } from 'vitepress'
import type { ThemeConfig } from 'awesome-vitepress-theme'

@ -196,7 +196,7 @@ export default {
如果主题需要特殊的 VitePress 配置,也需要在配置中扩展:
```ts
// .vitepress/theme/config.ts
// .vitepress/config.ts
import baseConfig from 'awesome-vitepress-theme/config'
export default {
@ -208,7 +208,7 @@ export default {
最后,如果主题为其主题配置提供了类型:
```ts
// .vitepress/theme/config.ts
// .vitepress/config.ts
import baseConfig from 'awesome-vitepress-theme/config'
import { defineConfigWithTheme } from 'vitepress'
import type { ThemeConfig } from 'awesome-vitepress-theme'

Loading…
Cancel
Save