diff --git a/docs/en/guide/custom-theme.md b/docs/en/guide/custom-theme.md index 96943c9fbadd..a1c301af803d 100644 --- a/docs/en/guide/custom-theme.md +++ b/docs/en/guide/custom-theme.md @@ -204,10 +204,10 @@ Finally, if the theme provides types for its theme config: ```ts [.vitepress/config.ts] import baseConfig from 'awesome-vitepress-theme/config' -import { defineConfigWithTheme } from 'vitepress' +import { defineConfig } from 'vitepress' import type { ThemeConfig } from 'awesome-vitepress-theme' -export default defineConfigWithTheme({ +export default defineConfig({ extends: baseConfig, themeConfig: { // Type is `ThemeConfig`