diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 39f1f2f..dce9a8f 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,19 +1,20 @@ import { h } from 'vue' -import Theme from 'vitepress/theme' +import type { Theme } from 'vitepress' +import DefaultTheme from 'vitepress/theme' import './styles/vars.css' import HomeSponsors from './components/HomeSponsors.vue' import AsideSponsors from './components/AsideSponsors.vue' import SvgImage from './components/SvgImage.vue' export default { - ...Theme, + extends: DefaultTheme, Layout() { - return h(Theme.Layout, null, { + return h(DefaultTheme.Layout, null, { 'home-features-after': () => h(HomeSponsors), 'aside-ads-before': () => h(AsideSponsors) }) }, enhanceApp({ app }) { app.component('SvgImage', SvgImage) - } -} + }, +} satisfies Theme diff --git a/docs/config/build-options.md b/docs/config/build-options.md index f291890..e48a275 100644 --- a/docs/config/build-options.md +++ b/docs/config/build-options.md @@ -217,7 +217,6 @@ De forma predeterminada, Vite vaciará `outDir` en la compilación si está dent ## build.copyPublicDir - **Experimental** [Hacer Comentarios](https://github.com/vitejs/vite/discussions/13807) - - **Tipo:** `boolean` - **Por defecto:** `true`