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