Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdocs中文搜索话题 #18

Open
JustusPan opened this issue Dec 21, 2022 · 1 comment
Open

mkdocs中文搜索话题 #18

JustusPan opened this issue Dec 21, 2022 · 1 comment

Comments

@JustusPan
Copy link

https://cloud-atlas.readthedocs.io/zh_CN/latest/devops/docs/mkdocs/mkdocs_chinese_search.html
您好,
在这篇文章中
有提到通过修改 lib/python3.10/site-packages/mkdocs/contrib/search/search_index.py 的内容来引入jieba分词。
如果是利用CI部署material of mkdocs在Gitlab page上,这个方法应该如何适用呢?

@huataihuang
Copy link
Owner

我对CI部署没有什么经验,我理解CI系统,例如jenkins都是支持调用第三方脚本的

如果能够部署一个 Python virtualenv 环境,安装相应的模块,那么CI调用一个自制脚本(先激活virtualenv,然后执行mkdocs),应该就能实现你说的目标。

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

No branches or pull requests

2 participants