Skip to content

Commit

Permalink
Use extends instead of spreading default theme (#503)
Browse files Browse the repository at this point in the history
* docs: feedback about experimental features

* docs: update the proxy options link

* docs: use extends instead of spreading default theme
  • Loading branch information
Franqsanz authored Sep 28, 2023
1 parent c963660 commit 27f8113
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 6 additions & 5 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion docs/config/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 27f8113

Please sign in to comment.