Skip to content

Commit

Permalink
fix chinese words search
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoXuan40404 committed Nov 21, 2024
1 parent 519fc27 commit ff3c54b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 11 additions & 1 deletion 3.x/zh_CN/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@
'sphinxcontrib.mermaid',
'sphinx.ext.mathjax',
'sphinx_markdown_tables',
'myst_parser'
'myst_parser',
'sphinx_search.ext'
]

myst_enable_extensions = [
"linkify", # 自动转换 URL 为链接
# "replacements", # 支持文本替换
# "smartquotes", # 美化引号
# "strikethrough", # 支持删除线
# "substitution", # 支持替换变量
# "attrs_block", # 支持 Markdown 块级属性
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ git-lfs
Jinja2<3.1
myst-parser == 0.13.0
pyyaml

jieba
linkify-it-py
sphinx-search-zh
# markdown-it-py

0 comments on commit ff3c54b

Please sign in to comment.