You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/docs/en/reference/default-theme-carbon-ads.md

590 B

Carbon Ads

VitePress has built in native support for Carbon Ads. By defining the Carbon Ads credentials in config, VitePress will display ads on the page.

export default {
  themeConfig: {
    carbonAds: {
      code: 'your-carbon-code',
      placement: 'your-carbon-placement'
    }
  }
}

These values are used to call carbon CDN script as shown below.

`//cdn.carbonads.com/carbon.js?serve=${code}&placement=${placement}`

To learn more about Carbon Ads configuration, please visit Carbon Ads website.