Skip to content

Commit 37e4ab9

Browse files
authored
docs: fix typo
closes #3184
1 parent 2cc0acc commit 37e4ab9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/guide/extending-default-theme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ import DefaultTheme from 'vitepress/theme'
101101
/** @type {import('vitepress').Theme} */
102102
export default {
103103
extends: DefaultTheme,
104-
enhanceApp(ctx) {
104+
enhanceApp({ app }) {
105105
// register your custom global components
106-
ctx.app.component('MyGlobalComponent' /* ... */)
106+
app.component('MyGlobalComponent' /* ... */)
107107
}
108108
}
109109
```
@@ -118,7 +118,7 @@ export default {
118118
extends: DefaultTheme,
119119
async enhanceApp({ app }) {
120120
// register your custom global components
121-
ctx.app.component('MyGlobalComponent' /* ... */)
121+
app.component('MyGlobalComponent' /* ... */)
122122
}
123123
} satisfies Theme
124124
```

0 commit comments

Comments
 (0)