|
|
@ -38,6 +38,7 @@ interface Theme {
|
|
|
|
Layout: Component // Vue 3 component
|
|
|
|
Layout: Component // Vue 3 component
|
|
|
|
NotFound?: Component
|
|
|
|
NotFound?: Component
|
|
|
|
enhanceApp?: (ctx: EnhanceAppContext) => void
|
|
|
|
enhanceApp?: (ctx: EnhanceAppContext) => void
|
|
|
|
|
|
|
|
setup?: () => void
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface EnhanceAppContext {
|
|
|
|
interface EnhanceAppContext {
|
|
|
@ -65,6 +66,11 @@ export default {
|
|
|
|
// router is VitePress' custom router. `siteData` is
|
|
|
|
// router is VitePress' custom router. `siteData` is
|
|
|
|
// a `ref` of current site-level metadata.
|
|
|
|
// a `ref` of current site-level metadata.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
// this function will be executed inside VitePressApp's
|
|
|
|
|
|
|
|
// setup hook. all composition APIs are available here.
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|