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

为什么无法正常使用search功能呢? #223

Closed
ihewro opened this issue Jul 25, 2017 · 9 comments
Closed

为什么无法正常使用search功能呢? #223

ihewro opened this issue Jul 25, 2017 · 9 comments

Comments

@ihewro
Copy link

ihewro commented Jul 25, 2017

  1. 我的文档本地目录是这样的:

_ _20170726030559

  1. 我在index.html添加的js为:

_ _20170726030814

  1. 下面也引入了search插件必须的代码
<script src="//cdn.jsdelivr.net/npm/docsify@latest/lib/plugins/search.min.js"></script>

可是仍然无法正常使用搜索功能,求解?

文档源码地址:https://coding.net/u/ihewro/p/typecho-theme-tea-docs/git
文档演示:https://handsome.ihewro.com

希望能够得到指点,感激不尽

@QingWei-Li
Copy link
Member

出啥问题。我这边正常的
image

@ihewro
Copy link
Author

ihewro commented Jul 26, 2017

@QingWei-Li 感谢回复!

但是它只能搜索首页的内容(homepage: 'home.md')

比如搜索“插件”,plugin.md有相关关键字,却无法搜索到
_ _20170726081437

@QingWei-Li
Copy link
Member

之前只能搜索 2 级标题,现在增加了一个参数可以搜索 1 - 6 级标题

{
  search: {
    depth: 6
  }
}

@ihewro
Copy link
Author

ihewro commented Jul 26, 2017

很棒!终于解决了!

@hamger
Copy link

hamger commented Sep 6, 2018

我设置了 depth:6 但是依然没有效果

@chenhongen
Copy link

我设置了 depth:6 但是依然没有效果

解决了吗?我也没效果。。

@xieerduos
Copy link

很棒!终于解决了!

说方案,你怎么解决的

@zhengjinhuai
Copy link

把search配置中的paths去掉就可以了

@xiaopan369
Copy link

把search配置中的paths去掉就可以了
感谢可以了

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

7 participants