Skip to content

Commit f44645f

Browse files
committed
feat: add docmd-search local semantic search page
- Create docs/search.md featuring premium landing layout for docmd-search - Incorporate bespoke vector-search sandbox visual mockup and features - Add internationalisation keys in English (en.json) and Chinese (zh.json) - Refactor scripts/rewrite-links.js to recursively find and rewrite links across all generated HTML pages (supporting search/index.html)
1 parent 323b94f commit f44645f

4 files changed

Lines changed: 506 additions & 17 deletions

File tree

assets/i18n/en.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,21 @@
111111
"footer.liveEditor": "Live Editor",
112112
"footer.releases": "Releases",
113113
"footer.sponsor": "Sponsor",
114-
"footer.license": "MIT License"
114+
"footer.license": "MIT License",
115+
"search.hero.badge": "docmd-search alpha",
116+
"search.hero.title": "Local Semantic Search.<br>Zero API keys. 100% Private.",
117+
"search.hero.sub": "Enable context-aware search results powered by local embeddings in the browser. Zero network dependencies, zero costs, instant client-side retrieval.",
118+
"search.hero.cta": "Get Started",
119+
"search.hero.metric.local": "Local Embeddings",
120+
"search.hero.metric.private": "100% Private",
121+
"search.hero.metric.ai": "AI-Powered",
122+
"search.hero.metric.cost": "Zero Cost",
123+
"search.features.title": "Private AI-Powered Search",
124+
"search.features.sub": "Bring modern vector search directly to your static docs without third-party services.",
125+
"search.feature.local.title": "Local Vector Models",
126+
"search.feature.local.desc": "Uses lightweight ONNX models executing directly on the client side. No data ever leaves the user's browser.",
127+
"search.feature.semantic.title": "Semantic Intent",
128+
"search.feature.semantic.desc": "Understands queries conceptually. Searching 'authentication' yields results for 'sign-in' and 'login' automatically.",
129+
"search.feature.sandbox.title": "Interactive CLI Sandbox",
130+
"search.feature.sandbox.desc": "Run the CLI with the --ui flag to test embeddings, adjust text chunking size, and visually inspect search scores."
115131
}

assets/i18n/zh.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,21 @@
111111
"footer.liveEditor": "在线编辑器",
112112
"footer.releases": "版本发布",
113113
"footer.sponsor": "赞助",
114-
"footer.license": "MIT 许可证"
114+
"footer.license": "MIT 许可证",
115+
"search.hero.badge": "docmd-search alpha",
116+
"search.hero.title": "本地语义搜索。<br>无需 API 密钥。100% 隐私安全。",
117+
"search.hero.sub": "在浏览器中启用基于本地嵌入(embeddings)的上下文感知搜索。零网络依赖,零成本,即时客户端检索。",
118+
"search.hero.cta": "开始使用",
119+
"search.hero.metric.local": "本地向量模型",
120+
"search.hero.metric.private": "100% 隐私安全",
121+
"search.hero.metric.ai": "AI 驱动",
122+
"search.hero.metric.cost": "零额外成本",
123+
"search.features.title": "私有 AI 驱动搜索",
124+
"search.features.sub": "无需任何第三方服务,将现代向量搜索直接带入您的静态文档中。",
125+
"search.feature.local.title": "本地向量模型",
126+
"search.feature.local.desc": "使用轻量级 ONNX 模型直接在客户端运行。任何数据都不会离开用户的浏览器。",
127+
"search.feature.semantic.title": "语义意图识别",
128+
"search.feature.semantic.desc": "概念性地理解查询意图。例如搜索“authentication”时,能自动匹配“sign-in”和“login”的结果。",
129+
"search.feature.sandbox.title": "交互式 CLI 沙盒",
130+
"search.feature.sandbox.desc": "使用 --ui 参数运行 CLI,即可可视化测试向量匹配分数并实时微调分块大小。"
115131
}

0 commit comments

Comments
 (0)