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

网站搜索功能 #640

Open
seisman opened this issue Jul 17, 2021 · 0 comments
Open

网站搜索功能 #640

seisman opened this issue Jul 17, 2021 · 0 comments

Comments

@seisman
Copy link
Member

seisman commented Jul 17, 2021

网站从开始到现在使用了三种不同的搜索工具:

  1. Sphinx 内置工具:可以在 https://docs.gmt-china.org/6.0/ 体验该工具。优点:内置工具,速度快,且搜索结果在网站内部显示;缺点:搜索结果不够智能不够完整,且依赖于 jieba
  2. Bing 搜索:目前在使用的搜索工具,可以在 https://docs.gmt-china.org/6.2/ 体验。优点:搜索结果更加智能;缺点:只能在新页面看到搜索结果
  3. Algolia,可以在其主页 https://www.algolia.com/ 体验,也可以在这个站点 https://vuepress.vuejs.org/zh/ 尝试中文搜索。优点:输入单词的过程中实时显示输出结果;缺点:依赖于第三方服务,但该服务免费。之前曾经用过一段时间 algolia,但是似乎加入 algolia 之后与模板冲突,导致左边菜单栏无法滚动,但应该可以修改 CSS 或 JS 解决。
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

1 participant