Skip to content

Drop the kbar search index and the dead MDX video mapping - #1997

Open
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/chore/drop-kbar-search-index
Open

marcleblanc2 wants to merge 1 commit into
mainfrom
marc/chore/drop-kbar-search-index

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Problem

  • kbar (a ⌘K palette) was removed in Fix docs search with Algolia #110, but its config in src/data/search.ts and the contentlayer onSuccess hook stayed behind, writing a 725 KB public/search.json on every build that nothing fetches
  • src/utils/contentlayer.ts only existed to build that index
  • The video entry in MdxComponents.tsx never runs: MDX compiles an explicit <video> to a literal element, so components.video is never consulted (the rounded-xl class it set has never been applied)

Change

32 lines and one file deleted, nothing added.

Verification

  • pnpm run build passes and no longer produces public/search.json
  • npx tsc --noEmit clean; pnpm run lint at the 39-warning baseline
  • rg -i 'kbar|search\.json' finds nothing
  • Rendered <video> markup on /docs/code-monitoring is byte-identical before and after (it never had the class)

Note: #1977 touches the same searchDocumentsPath line; whichever merges second gets a one-line rebase.

kbar was removed in #110; the contentlayer onSuccess hook kept writing a
725 KB public/search.json that nothing fetched. src/utils/contentlayer.ts
only existed to build that index.

MDX compiles an explicit <video> to a literal element, so components.video
never ran; the rounded-xl class it set was never applied.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0ae6a-1645-702a-a5ed-92f8b9bce33b
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Sep 17, 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 17, 2026 9:59am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Spell check found 3 issue(s) in this PR

Only findings on lines added by this PR, and in its title and description, are shown.

Pull request title

  • column 10
    • kbarknar

Pull request description

  • line 3, column 3
    • kbarknar
  • line 15, column 11
    • kbarknar

Please correct the spelling, or add words which are correct to cspell-allow-list.txt.

Run npx cspell@10 --no-progress --dot '**/*' locally to check the full repository.

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