Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
closes #3184
  • Loading branch information
brc-dd authored Nov 5, 2023
1 parent 2cc0acc commit 37e4ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/extending-default-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ import DefaultTheme from 'vitepress/theme'
/** @type {import('vitepress').Theme} */
export default {
extends: DefaultTheme,
enhanceApp(ctx) {
enhanceApp({ app }) {
// register your custom global components
ctx.app.component('MyGlobalComponent' /* ... */)
app.component('MyGlobalComponent' /* ... */)
}
}
```
Expand All @@ -118,7 +118,7 @@ export default {
extends: DefaultTheme,
async enhanceApp({ app }) {
// register your custom global components
ctx.app.component('MyGlobalComponent' /* ... */)
app.component('MyGlobalComponent' /* ... */)
}
} satisfies Theme
```
Expand Down

0 comments on commit 37e4ab9

Please sign in to comment.