feat(wiki): full-text search across wiki pages #550
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add search functionality to the wiki so users can find content across all pages and folders. Should include keyword search in page titles and content, with results showing matched context snippets.
Design
Routes
GET /:owner/:repo/wiki?action=_search&q=termGET /api/v1/repos/:owner/:repo/wiki/search?q=termImplementation
git grepagainst the wiki git repo — fast, requires no index, works with git-based storageUI
/)Files to Modify
routers/web/repo/wiki.goWikiSearch()handlerrouters/api/v1/repo/wiki.gotemplates/repo/wiki/search.tmpltemplates/repo/wiki/view.tmplMerged from #545