mirror of https://github.com/vuejs/vitepress
parent
13924c9734
commit
982501fd30
@ -0,0 +1,11 @@
|
||||
export function useSiteData() {
|
||||
return {
|
||||
msg: 'this is site'
|
||||
}
|
||||
}
|
||||
|
||||
export function usePageData() {
|
||||
return {
|
||||
msg: 'this is page'
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
// exports in this file are exposed to themes and md files via 'vitepress'
|
||||
// so the user can do `import { usePageData } from 'vitepress'`
|
||||
export { usePageData, useSiteData } from './composables/data'
|
@ -1,3 +1,13 @@
|
||||
import Layout from './Layout.vue'
|
||||
|
||||
export { Layout }
|
||||
/**
|
||||
* @type {{
|
||||
* Layout: import('vue').ComponentOptions
|
||||
* NotFound?: import('vue').ComponentOptions
|
||||
* }}
|
||||
*/
|
||||
const Theme = {
|
||||
Layout
|
||||
}
|
||||
|
||||
export default Theme
|
||||
|
Loading…
Reference in new issue