diff --git a/docs/.vuepress/public/studio-banner.jpg b/docs/.vuepress/public/studio-banner.jpg new file mode 100644 index 000000000..bd9b2bcde Binary files /dev/null and b/docs/.vuepress/public/studio-banner.jpg differ diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue index 7bf01643c..20eb116af 100644 --- a/docs/.vuepress/theme/layouts/Layout.vue +++ b/docs/.vuepress/theme/layouts/Layout.vue @@ -1,6 +1,6 @@ @@ -9,13 +9,17 @@ // var CarbonAds = require('./CarbonAds.vue').default; // import Layout from '@vuepress/theme-default/layouts/Layout.vue'; // import CarbonAds from './CarbonAds.vue'; + +// Check all the default slots: +// https://github.com/vuejs/vuepress/blob/9fb4bb00925d9409e6732118e996411c6a82c85d/packages/%40vuepress/theme-default/layouts/Layout.vue import Layout from '@parent-theme/layouts/Layout.vue'; import CarbonAds from './CarbonAds.vue'; +import StudioSdkBannerSidebar from './StudioSdkBannerSidebar.vue'; export default { components: { Layout, - CarbonAds, + StudioSdkBannerSidebar, }, }; diff --git a/docs/.vuepress/theme/layouts/StudioSdkBannerSidebar.vue b/docs/.vuepress/theme/layouts/StudioSdkBannerSidebar.vue new file mode 100644 index 000000000..726258c1a --- /dev/null +++ b/docs/.vuepress/theme/layouts/StudioSdkBannerSidebar.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/docs/.vuepress/theme/layouts/utils.js b/docs/.vuepress/theme/layouts/utils.js new file mode 100644 index 000000000..a216ed46a --- /dev/null +++ b/docs/.vuepress/theme/layouts/utils.js @@ -0,0 +1,7 @@ +export const getSdkUtmParams = (medium = '') => { + return `utm_source=grapesjs-docs&utm_medium=${medium}`; +} + +export const getSdkDocsLink = (medium = '') => { + return `https://app.grapesjs.com/docs-sdk/overview/getting-started?${getSdkUtmParams(medium)}`; +} \ No newline at end of file