Skip to content

cleanup: drop docs/integration/img, fix GitLab integration gif - #2013

Open
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/cleanup/integration-img
Open

marcleblanc2 wants to merge 1 commit into
mainfrom
marc/cleanup/integration-img

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

What

  • Delete docs/integration/img/ (29 files, 4.6 MB)
  • Move gitlab-code-intel.gif to public/gitlab-native-integration.gif and point docs/integration/gitlab.mdx at it
  • Drop the /integration/img/disable_extension.png redirect

Why

docs/integration/img/ came over in the first migration commit (c877488, Nov 2023) as a straight copy of doc/integration/img/ from sourcegraph/sourcegraph, where the old docsite served images relative to the markdown. This site only serves public/, so nothing under that path has ever been reachable: every /docs/integration/img/* URL 404s.

Cloudflare HTTP analytics for sourcegraph.com over the last 32 days (the zone's retention limit) show ~870 estimated requests to that prefix, every one answered with text/html or text/plain, none with an image. About 90% is bot/scanner traffic (bot score 0-3, .jsp and script-injection paths, referrers from docs-legacy.sourcegraph.com/@3.34/... and 4.4.sourcegraph.com/...).

Of the 29 files, 28 were referenced by nothing: the editor and browser icon <img> tags were dropped in the migration, and the G Suite screenshots were re-pointed at storage.googleapis.com/sourcegraph-assets/Docs/ (those copies are live). The one live reference, gitlab.mdx line 29, kept its relative img/gitlab-code-intel.gif path and has rendered a broken image since November 2023; Cloudflare logged a real reader hitting that 404 from /docs/integration/gitlab on Aug 29.

The redirect (added in 2cf9fd3) pointed at a URL the site never served.

Notes

  • The gif is referenced as /gitlab-native-integration.gif, matching the existing public/ images (/aws-ami-marketplace.png, /postgres_collation_affected_customers.png). On production those root-relative src values are missing the /docs prefix; Serve site at a consistent, configurable basePath, for all deployments #1977 fixes that for all of them.
  • Verified locally with pnpm run dev: /gitlab-native-integration.gif returns 200 image/gif (3.7 MB, 922x504) and /integration/gitlab renders <img src="/gitlab-native-integration.gif">.
  • pnpm run check passes (links, filenames, images). node dev/check-redirects.mjs reports nothing for the changed lines.

docs/integration/img/ came over in the 2023 migration from
sourcegraph/sourcegraph doc/integration/img/, where the old docsite served
images relative to the markdown. This site only serves public/, so none of
the 29 files was ever reachable; every /docs/integration/img/* URL 404s and
Cloudflare shows only bot traffic and HTML responses for that prefix over
the last 32 days.

28 of the files were referenced by nothing: the editor and browser icons
lost their <img> tags in the migration, and the G Suite screenshots moved
to storage.googleapis.com/sourcegraph-assets/Docs/. The one live reference,
docs/integration/gitlab.mdx, kept its relative img/gitlab-code-intel.gif
path and has rendered a broken image since November 2023. Move that gif to
public/ and point the page at it.

Drop the redirect for /integration/img/disable_extension.png: it pointed at
a URL the site never served.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0b272-e08d-75ea-a5d6-2ade32a7ddde
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 18, 2026 5:56am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Direct preview links to pages changed in this PR:

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.

2 participants