v3.4.63: amplify pagefind title boost to ~100x via 10x title duplication

This commit is contained in:
kochetkov-ma
2026-04-11 11:04:18 +01:00
parent 61981c3fb9
commit f0942a91c8
8 changed files with 28 additions and 16 deletions
+5 -5
View File
@@ -6,13 +6,13 @@
},
"metadata": {
"description": "Claude Code plugin suite: brewcode for infinite task execution, brewdoc for documentation tools, brewtools for text utilities, brewui for UI/visual/creative tools",
"version": "3.4.62"
"version": "3.4.63"
},
"plugins": [
{
"name": "brewcode",
"description": "Brewcode - full-featured development platform for Claude Code: infinite focus tasks, prompt optimization, skill/agent creation, quorum reviews, rules management",
"version": "3.4.62",
"version": "3.4.63",
"category": "productivity",
"keywords": [
"brewcode",
@@ -46,7 +46,7 @@
{
"name": "brewdoc",
"description": "Brewdoc - Claude Code documentation tools: auto-sync for skills/agents/rules, my-claude installation docs, memory optimization, md-to-pdf conversion",
"version": "3.4.62",
"version": "3.4.63",
"category": "productivity",
"keywords": [
"brewdoc",
@@ -74,7 +74,7 @@
{
"name": "brewtools",
"description": "Brewtools - universal utilities for Claude Code: text optimization, humanization, secrets scanning",
"version": "3.4.62",
"version": "3.4.63",
"category": "productivity",
"keywords": [
"brewtools",
@@ -102,7 +102,7 @@
{
"name": "brewui",
"description": "Brewui - UI/visual/creative tools for Claude Code: AI image generation, design-to-code conversion",
"version": "3.4.62",
"version": "3.4.63",
"category": "productivity",
"keywords": [
"brewui",
+8
View File
@@ -2,6 +2,14 @@
---
## v3.4.63 (2026-04-11)
> Docs: [Introduction](https://doc-claude.brewcode.app/getting-started/)
### docs
#### Changed
- **Search ranking — title boost amplified to ~100×:** v3.4.62 added `data-pagefind-weight="10"` on a single sr-only title element, but Pagefind's max weight (10) + one heading match still lost to pages with many body mentions of the same word. Verified on live site: `"start"` put the actual `/brewcode:start` skill page at rank 7, behind Agent Creator, Hook Creator, Guide, etc. Fix: duplicate the page title 10× inside the weighted sr-only element (`{Array(10).fill(title).join(' ')}`), yielding an effective ~100× BM25 boost. Title-matching pages should now consistently rank first.
## v3.4.62 (2026-04-11)
> Docs: [Introduction](https://doc-claude.brewcode.app/getting-started/)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "brewcode",
"version": "3.4.62",
"version": "3.4.63",
"description": "Brewcode - full-featured development platform for Claude Code: infinite focus tasks, prompt optimization, skill/agent creation, quorum reviews, rules management",
"author": {
"name": "Maksim Kochetkov",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "claude-plugin-brewcode",
"version": "3.4.62",
"version": "3.4.63",
"description": "Infinite task execution with automatic handoff for Claude Code",
"keywords": [
"claude-code",
@@ -36,6 +36,6 @@
},
"claude-plugin": {
"name": "brewcode",
"version": "3.4.62"
"version": "3.4.63"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "brewdoc",
"version": "3.4.62",
"version": "3.4.63",
"description": "Brewdoc - Claude Code documentation tools: auto-sync for skills/agents/rules, my-claude installation docs, memory optimization",
"author": {
"name": "Maksim Kochetkov",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "brewtools",
"version": "3.4.62",
"version": "3.4.63",
"description": "Brewtools - universal utilities for Claude Code: text optimization, humanization, secrets scanning",
"author": {
"name": "Maksim Kochetkov",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "brewui",
"version": "3.4.62",
"version": "3.4.63",
"description": "Brewui - UI/visual/creative tools for Claude Code: AI image generation, design-to-code conversion",
"author": {
"name": "Maksim Kochetkov",
+9 -5
View File
@@ -27,11 +27,15 @@ const { title, description, headings = [], currentSlug = '' } = Astro.props;
<div class="flex w-full max-w-[90rem] px-4 lg:px-8">
<!-- Article content -->
<article class="prose flex-1 max-w-5xl py-8 min-w-0" data-pagefind-body>
{/* Title boost: Pagefind BM25 weights this element 10x, so
a query that matches the page title (e.g. "start", "plan")
ranks the actual /brewcode:start skill page above every
page that just mentions "start" in prose. */}
<span class="sr-only" data-pagefind-weight="10" data-pagefind-meta="title">{title}</span>
{/* Title boost: Pagefind's weight attribute caps at 10, and a
single heading match loses to many body mentions. We duplicate
the title 10× inside an sr-only element weighted at 10 so the
effective BM25 boost is ~100×. This makes the page whose title
matches the query (e.g. "start" → /brewcode:start) rank above
pages that just mention the word in prose. */}
<span class="sr-only" data-pagefind-weight="10" data-pagefind-meta="title">
{Array(10).fill(title).join(' ')}
</span>
<slot />
</article>