docs: fix typo

closes #3184
pull/3187/head
Divyansh Singh 1 year ago committed by GitHub
parent 2cc0acceef
commit 37e4ab9ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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' /* ... */)
}
}
```
@ -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
```

Loading…
Cancel
Save