Skip to content

docs: add CarbonAds to right sidebar#2729

Merged
mroderick merged 1 commit into
mainfrom
carbonads
Jun 15, 2026
Merged

docs: add CarbonAds to right sidebar#2729
mroderick merged 1 commit into
mainfrom
carbonads

Conversation

@mroderick

Copy link
Copy Markdown
Member

Add CarbonAds to the right sidebar of the VitePress documentation site
using VitePress's built-in support — no plugins or custom components needed.

  • VitePress renders the ad below the outline, pushed to the bottom of
    the aside by a flex spacer
  • The Carbon script loads lazily only at desktop widths (hidden on mobile)
  • Auto-refreshes on page navigation via _carbonads.refresh()
  • Uses the same CE7D453M serve ID and sinonjsorg placement as the
    old Jekyll site

The old Jekyll site had CarbonAds via _includes/carbonads.html, but
this was never ported to the new VitePress site.

Enable VitePress built-in CarbonAds support by adding the carbonAds
config to themeConfig, using the same serve ID and placement as the
old Jekyll site.
@mroderick mroderick requested a review from hexeberlin June 15, 2026 17:43
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.40%. Comparing base (c1b92bf) to head (1b19081).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2729   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files          39       39           
  Lines        1810     1810           
=======================================
  Hits         1763     1763           
  Misses         47       47           
Flag Coverage Δ
unit 97.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mroderick mroderick marked this pull request as ready for review June 15, 2026 17:44
@mroderick mroderick closed this Jun 15, 2026
@mroderick mroderick reopened this Jun 15, 2026
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@mroderick mroderick merged commit fc23749 into main Jun 15, 2026
33 of 35 checks passed
@mroderick mroderick deleted the carbonads branch June 15, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants