docs: update config path in custom theme

pull/3618/head
pearmini 2 years ago
parent 532389270b
commit ec82b0ab12

@ -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