diff --git a/docs/.vitepress/theme/AdComponent.vue b/docs/.vitepress/theme/AdComponent.vue new file mode 100644 index 00000000..b7bd9d5c --- /dev/null +++ b/docs/.vitepress/theme/AdComponent.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/docs/.vitepress/theme/documate.vue b/docs/.vitepress/theme/documate.vue new file mode 100644 index 00000000..d89e2f40 --- /dev/null +++ b/docs/.vitepress/theme/documate.vue @@ -0,0 +1,5 @@ + diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts new file mode 100644 index 00000000..002640f1 --- /dev/null +++ b/docs/.vitepress/theme/index.ts @@ -0,0 +1,13 @@ +// .vitepress/theme/index.js +import { h } from 'vue' +import DefaultTheme from 'vitepress/theme' +import AdComponent from './AdComponent.vue' + +export default { + ...DefaultTheme, + Layout() { + return h(DefaultTheme.Layout, null, { + 'doc-before': () => h(AdComponent), + }) + } +}