Skip to content

Conversation

sayzlim
Copy link

@sayzlim sayzlim commented Sep 10, 2025

  • Update the ad code to use the new format with inline CSS support
  • Moved the ad into the content on the second <div> in content to prevent layout shift and maintain ad visibility (better support for Carbon Cover width)

The positive tradeoff as we don't have ads in the TOC anymore, although the ad performance may be affected.

Added .ruby-version (2.7.8) and .bundle/config to specify Ruby version and bundle path. Updated _config.yml to exclude 'vendor' and '.bundle' directories. Updated Gemfile.lock and package-lock.json to reflect dependency and platform changes.
Updated the Carbon Ads script URL and placement logic to match new ad parameters and layout. Simplified Carbon Ads CSS and adjusted SCSS imports for maintainability. The ad script is now inserted after the second child in the docs container, with a fallback to the top if the target is not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant