Skip to content

Commit e4aea83

Browse files
Alexandre Oliveiraclaude
andcommitted
feat(docs): add local search via @easyops-cn/docusaurus-search-local
- Install @easyops-cn/docusaurus-search-local - Add theme config with hashed index, en+pt language support, all three doc bases (turing/shio/dumont), and search result limits - Add search box to navbar (type: search, position: right) - Fix broken anchor: llm-instances#capabilities-matrix → #capabilities-by-vendor Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 05faa5b commit e4aea83

4 files changed

Lines changed: 572 additions & 3 deletions

File tree

docs-turing/embedding-stores.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The available embedding models depend on the configured LLM provider:
8585
| **Google Gemini** | `text-embedding-004`, `embedding-001` |
8686
| **Ollama (local)** | `nomic-embed-text`, `mxbai-embed-large`, `all-minilm` |
8787

88-
Not all LLM providers support embedding models — for example, Anthropic and standalone Gemini do not include an embedding API. See [LLM Instances](./llm-instances.md#capabilities-matrix) for the full capability matrix.
88+
Not all LLM providers support embedding models — for example, Anthropic and standalone Gemini do not include an embedding API. See [LLM Instances — Capabilities by Vendor](./llm-instances.md#capabilities-by-vendor) for the full capability matrix.
8989

9090
### Choosing a model
9191

docusaurus.config.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,25 @@ const config: Config = {
2525
},
2626
},
2727

28-
themes: ["@docusaurus/theme-mermaid"],
28+
themes: [
29+
"@docusaurus/theme-mermaid",
30+
[
31+
require.resolve("@easyops-cn/docusaurus-search-local"),
32+
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
33+
{
34+
hashed: true,
35+
language: ["en", "pt"],
36+
docsRouteBasePath: ["turing", "shio", "dumont"],
37+
indexDocs: true,
38+
indexBlog: false,
39+
indexPages: false,
40+
searchResultLimits: 8,
41+
searchResultContextMaxLength: 50,
42+
explicitSearchResultPath: true,
43+
searchBarShortcutHint: true,
44+
},
45+
],
46+
],
2947

3048
i18n: {
3149
defaultLocale: "en",
@@ -134,7 +152,12 @@ const config: Config = {
134152
width: 28,
135153
height: 28,
136154
},
137-
items: [],
155+
items: [
156+
{
157+
type: "search",
158+
position: "right",
159+
},
160+
],
138161
},
139162
footer: {
140163
style: "dark",

0 commit comments

Comments
 (0)