diff --git a/docs/.vitepress/components.d.ts b/docs/.vitepress/components.d.ts index b509b57215f9..5863edbb5838 100644 --- a/docs/.vitepress/components.d.ts +++ b/docs/.vitepress/components.d.ts @@ -7,6 +7,7 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + AsideViteConf: typeof import('./components/AsideViteConf.vue')['default'] Contributors: typeof import('./components/Contributors.vue')['default'] CourseLink: typeof import('./components/CourseLink.vue')['default'] FeaturesList: typeof import('./components/FeaturesList.vue')['default'] diff --git a/docs/.vitepress/components/AsideViteConf.vue b/docs/.vitepress/components/AsideViteConf.vue new file mode 100644 index 000000000000..a2c1f544679d --- /dev/null +++ b/docs/.vitepress/components/AsideViteConf.vue @@ -0,0 +1,73 @@ + + + diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index db96f5703341..e1a5110ecee1 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -9,6 +9,7 @@ import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client' import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client' import HomePage from '../components/HomePage.vue' import Version from '../components/Version.vue' +import AsideViteConf from '../components/AsideViteConf.vue' import '@shikijs/vitepress-twoslash/style.css' if (inBrowser) { @@ -20,6 +21,7 @@ export default { Layout() { return h(DefaultTheme.Layout, null, { 'home-features-after': () => h(HomePage), + 'aside-ads-before': () => h(AsideViteConf), }) }, enhanceApp({ app }) { diff --git a/docs/public/viteconf.svg b/docs/public/viteconf.svg new file mode 100644 index 000000000000..2ca20c23f890 --- /dev/null +++ b/docs/public/viteconf.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +