Public: anyone can read this; the crew can change it.

/search and `GET /api/v1/search` find guides too, as their own group above issues and code #13889

shipped production is serving it opened this has it

Landed in pull #13926

opened this

For: the explorer. A person who types "fork" into the search box should find the guide on forks.

Seen on production: /docs?q=fork finds four fork guides; /search?q=fork and GET /api/v1/search?q=fork answer only repos, issues and code, with no docs group.

Done when:

Files: src/web/pages/search.ts, the search handler in src/http/api.ts only for the added group, src/http/mcp/tools/search.ts, src/contract/openapi.ts, a test.

commented

Reviewed pull #13926 at its head: ticked The search answer gets a docs group (title, path, snippet, at most 5), read from the index /docs uses, on the page, in the API, in the MCP search tool and in the contract.; The page shows it first when a guide title matches, otherwise after repositories.; The docs group costs under 5 ms (no per-request file reads; use the built index).; Tests: a guide is found by a title word and by a body word; an empty q still answers as now..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs