Skip to content

[fix] 优化中文文档搜索词典#230

Merged
Triple-Z merged 1 commit into
deb-sig:masterfrom
fatsheep2:codex/runtime-template-jieba-search
Jun 3, 2026
Merged

[fix] 优化中文文档搜索词典#230
Triple-Z merged 1 commit into
deb-sig:masterfrom
fatsheep2:codex/runtime-template-jieba-search

Conversation

@fatsheep2

Copy link
Copy Markdown
Contributor

Description

为 MkDocs 搜索补充本地 jieba 词典,使中文文档搜索可以更稳定地分词和命中模板 Provider 相关内容。

本 PR 未关联具体 issue。

Motivation and Context

文档搜索依赖中文分词效果。默认分词在部分中文术语、Provider 名称和导入规则关键词上命中不够稳定。

本 PR 将 jieba 词典作为文档构建资源提交,避免本地或 CI 环境因为缺少词典导致中文搜索效果不一致。

Dependencies

无运行时依赖。

该变更只影响文档搜索构建资源,不影响 DEG CLI 或 Provider 解析逻辑。

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

已在本地验证文档搜索可以正常使用中文查询。

  • Test A: 本地启动文档预览并验证搜索框可正常返回中文结果
  • Test B: 确认本 PR 只包含 docs/vendor/mkdocs-search-jieba 下的词典与插件资源

Is this change properly documented?

是。该 PR 本身是文档搜索资源补充,不需要额外用户使用文档。

@fatsheep2 fatsheep2 requested a review from a team as a code owner May 30, 2026 06:50

@Triple-Z Triple-Z left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Triple-Z Triple-Z merged commit f5f2cb6 into deb-sig:master Jun 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants