Skip to content

Delete 3 unused images in public/ - #1988

Open
marcleblanc2 wants to merge 2 commits into
mainfrom
marc/cleanup/unused-public-assets
Open

marcleblanc2 wants to merge 2 commits into
mainfrom
marc/cleanup/unused-public-assets

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Deletes three files in public/ that nothing under src/ or docs/ references:

  • sourcegraph-mark.png: the site uses sourcegraph-mark.svg
  • sourcegraph-logo-dark.svg, sourcegraph-logo-light.svg: the site uses logo-theme-{dark,light}.svg

Cloudflare traffic logs

Requests to sourcegraph.com/docs/<file> from the last 31 days:

File Requests Who
sourcegraph-og-nw.png ~490 Slack-ImgProxy/Slackbot, SkypeUriPreview, Glean crawlers, a third-party chat widget, Iframely
sourcegraph-logo-dark.svg ~10 curl/8.7.1, no referer
sourcegraph-mark.png 0
sourcegraph-logo-light.svg 0

The OG image traffic is link-preview fetchers re-rendering docs links that were posted or indexed before the og:image switch in #1480, with the old URL baked in. Deleting it would break those previews, so keeping it for now.

Analysis: https://ampcode.com/threads/T-01a0ad56-bd79-73ce-bc8e-a5405d0c11f2

Test plan

  • rg -F <filename> over src/, docs/, dev/, config: no matches
  • Static files only, so pnpm run build is unaffected
  • Vercel preview site looks fine

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sourcegraph-docs Ignored Ignored Preview Sep 17, 2026 7:32am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

This comment has been minimized.

sourcegraph-mark.png and the two logo SVGs are unreferenced in src/ and
docs/ and saw no meaningful traffic in Cloudflare over the last 31 days.

sourcegraph-og-nw.png stays: the site switched og:image to /api/og in
December 2025, but Slack, Skype and Glean still fetch it ~500 times a
month when re-rendering previews of docs links posted before then.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0ad56-bd79-73ce-bc8e-a5405d0c11f2
Co-authored-by: Amp <amp@ampcode.com>
@marcleblanc2
marcleblanc2 force-pushed the marc/cleanup/unused-public-assets branch from 9237f0b to a894a2a Compare September 17, 2026 07:04
@marcleblanc2 marcleblanc2 changed the title Remove public/ images nothing references Remove three public/ images nothing references Sep 17, 2026
@marcleblanc2 marcleblanc2 changed the title Remove three public/ images nothing references Delete 3 unused images in public/ Sep 17, 2026
@marcleblanc2
marcleblanc2 marked this pull request as ready for review September 17, 2026 07:39
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.

1 participant