[fix] 优化中文文档搜索词典#230
Merged
Triple-Z merged 1 commit intoJun 3, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
为 MkDocs 搜索补充本地 jieba 词典,使中文文档搜索可以更稳定地分词和命中模板 Provider 相关内容。
本 PR 未关联具体 issue。
Motivation and Context
文档搜索依赖中文分词效果。默认分词在部分中文术语、Provider 名称和导入规则关键词上命中不够稳定。
本 PR 将 jieba 词典作为文档构建资源提交,避免本地或 CI 环境因为缺少词典导致中文搜索效果不一致。
Dependencies
无运行时依赖。
该变更只影响文档搜索构建资源,不影响 DEG CLI 或 Provider 解析逻辑。
Type of change
How has this been tested?
已在本地验证文档搜索可以正常使用中文查询。
docs/vendor/mkdocs-search-jieba下的词典与插件资源Is this change properly documented?
是。该 PR 本身是文档搜索资源补充,不需要额外用户使用文档。