From: Eduardo San Martin Morote Date: Thu, 17 Sep 2020 19:17:35 +0000 (+0200) Subject: docs: add theme for ads for next vitepress X-Git-Tag: v4.0.0-beta.10~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b61be6eec1132e2929341271a2e07917c2f105b4;p=thirdparty%2Fvuejs%2Frouter.git docs: add theme for ads for next vitepress --- diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue new file mode 100644 index 00000000..c59e0f23 --- /dev/null +++ b/docs/.vitepress/theme/Layout.vue @@ -0,0 +1,36 @@ + + + diff --git a/docs/.vitepress/theme/components/BuySellAds.vue b/docs/.vitepress/theme/components/BuySellAds.vue new file mode 100644 index 00000000..ed3875b2 --- /dev/null +++ b/docs/.vitepress/theme/components/BuySellAds.vue @@ -0,0 +1,109 @@ + + + diff --git a/docs/.vitepress/theme/components/CarbonAds.vue b/docs/.vitepress/theme/components/CarbonAds.vue new file mode 100644 index 00000000..a6aea0ce --- /dev/null +++ b/docs/.vitepress/theme/components/CarbonAds.vue @@ -0,0 +1,68 @@ + + + diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js new file mode 100644 index 00000000..323bb5f3 --- /dev/null +++ b/docs/.vitepress/theme/index.js @@ -0,0 +1,12 @@ +import DefaultTheme from 'vitepress/dist/client/theme-default' +import Layout from './Layout.vue' + +export default { + ...DefaultTheme, + Layout, + enhanceApp({ app, router, siteData }) { + // app is the Vue 3 app instance from createApp() + // router is VitePress' custom router (see `lib/app/router.js`) + // siteData is a ref of current site-level metadata. + }, +}