From fbdd71e681c4d1acefeb097b8551acd6be780507 Mon Sep 17 00:00:00 2001 From: PizzaConsole <60050783+PizzaConsole@users.noreply.github.com> Date: Thu, 22 May 2025 20:03:13 -0700 Subject: [PATCH] Update custom-theme.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit defineConfigWithTheme @deprecated — use defineConfig instead --- docs/en/guide/custom-theme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`