Skip to content

fix: show page title as primary search result label#975

Draft
teallarson wants to merge 1 commit into
mainfrom
fix/search-result-page-title
Draft

fix: show page title as primary search result label#975
teallarson wants to merge 1 commit into
mainfrom
fix/search-result-page-title

Conversation

@teallarson
Copy link
Copy Markdown
Contributor

Summary

  • Search results currently surface the deepest matched heading (e.g. --api-key, -k) as the prominent title and bury the page title in the breadcrumb above.
  • This flips it: lvl0 (page title) is now the main title, and the section path (lvl1 → deeper) is rendered as a subtitle beneath it.
  • Snippet/content rendering is unchanged.

Test plan

  • Open the search modal in the preview deployment and confirm hits display the page title as the bold/primary line.
  • Confirm the section path appears as a smaller subtitle below, with separators when nested.
  • Verify the matched term highlights correctly when it lands in the page title, a section heading, or content body.
  • Verify legacy flat records (with title/description) still render correctly.

🤖 Generated with Claude Code

Search results were displaying the deepest matched heading (e.g. a
subsection like "--api-key, -k") as the prominent title, with the page
title buried in the breadcrumb above. Flip the hierarchy: lvl0 (page
title) becomes the main title, and the section path (lvl1 onward) is
rendered as a subtitle beneath it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 20, 2026 4:09pm

Request Review

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