Skip to content

Commit 75bed4f

Browse files
authored
docs: fix config path in guide/custom-theme.md (#3618)
1 parent 5323892 commit 75bed4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: docs/guide/custom-theme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default {
196196
If the theme requires special VitePress config, you will need to also extend it in your own config:
197197

198198
```ts
199-
// .vitepress/theme/config.ts
199+
// .vitepress/config.ts
200200
import baseConfig from 'awesome-vitepress-theme/config'
201201

202202
export default {
@@ -208,7 +208,7 @@ export default {
208208
Finally, if the theme provides types for its theme config:
209209

210210
```ts
211-
// .vitepress/theme/config.ts
211+
// .vitepress/config.ts
212212
import baseConfig from 'awesome-vitepress-theme/config'
213213
import { defineConfigWithTheme } from 'vitepress'
214214
import type { ThemeConfig } from 'awesome-vitepress-theme'

Diff for: docs/zh/guide/custom-theme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default {
196196
如果主题需要特殊的 VitePress 配置,也需要在配置中扩展:
197197

198198
```ts
199-
// .vitepress/theme/config.ts
199+
// .vitepress/config.ts
200200
import baseConfig from 'awesome-vitepress-theme/config'
201201

202202
export default {
@@ -208,7 +208,7 @@ export default {
208208
最后,如果主题为其主题配置提供了类型:
209209

210210
```ts
211-
// .vitepress/theme/config.ts
211+
// .vitepress/config.ts
212212
import baseConfig from 'awesome-vitepress-theme/config'
213213
import { defineConfigWithTheme } from 'vitepress'
214214
import type { ThemeConfig } from 'awesome-vitepress-theme'

0 commit comments

Comments
 (0)