You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the search mechanism does not work when on the home page (readme.md) - the type to search placeholder doesn't even show. When on any other page it works.
One of the reasons I chose Docsify was because it came with its own search. An alternative would be to use VuePress which comes with nice Algolia integration (for example).
We can provide an Algolia plugin for that maybe?.
But I really like the idea of having our own (whether its with a lib or with our own code).
The current search features isn't too complex. We just need to add a CLI feature that can save the search info as a local file, then the static site can read this file to get search results. That's the easiest way with shortest amount of code additional to what we have now, I think.
His website, http://54.37.231.32, seems to only have a home page. The behavior reported is that search is not working. Based on the reported issue here, it would seem that ombaiz is experiencing the same problem (considering he has only a home page, there are no search results).
May I suggest docsify team have a high level review of the search feature.
The search should be flexible enough to be place at different pages/levels:
In the global _coverpage.md (or a custom coverpage.html) to search all content in the site
If there are multiple folders/projects hosted in the /docs folder, we should be able to configure the search in the sidebar to only search content in the particular folder/project
I've got private facing docs site with this issue too - but our home page only is the _coverpage. Clicking "View Documentation" to jump to item 1 in the TOC the search doesn't show. A hard refresh shows it, but only then. I've tested the order of the scripts loading, but hasn't changed anything
Activity
Koooooo-7 commentedon Mar 22, 2020
could u give more details about it.
joetidee commentedon Mar 22, 2020
It appears that the search mechanism does not work when on the home page (readme.md) - the type to search placeholder doesn't even show. When on any other page it works.
sy-records commentedon Jun 7, 2020
is it that when you visit the home page you can't search for anything else, or is it that you can't search for readme.md's content?
trusktr commentedon Jun 7, 2020
Please let us know how to reproduce. Do you have the code for your site?
trusktr commentedon Jun 10, 2020
In general I think we need to fix up the search feature. It hasn't been completely reliable.
Here's a new WebAssembly-powered search engine for the client side: https://www.infoq.com/news/2020/06/rust-webassembly-fulltext-search/
anikethsaha commentedon Jun 10, 2020
Maintaining our own searching plugin + logic can be expensive. I was thinking of this docsearch.algolia.com
trusktr commentedon Jun 10, 2020
Does Algolia work offline?
trusktr commentedon Jun 10, 2020
One of the reasons I chose Docsify was because it came with its own search. An alternative would be to use VuePress which comes with nice Algolia integration (for example).
We can provide an Algolia plugin for that maybe?.
But I really like the idea of having our own (whether its with a lib or with our own code).
trusktr commentedon Jun 10, 2020
The current search features isn't too complex. We just need to add a CLI feature that can save the search info as a local file, then the static site can read this file to get search results. That's the easiest way with shortest amount of code additional to what we have now, I think.
anikethsaha commentedon Jun 10, 2020
algolia scraps the site every 24hrs I guess. and I think they do store the content in localstorage.
Yeh, we can offer both plugins ,
trusktr commentedon Jun 13, 2020
I think ombaiz on Discord may be having this issue. Can you check out his link and verify if it looks to be the same issue?
Discord chat: https://discord.com/channels/713647066802421792/713647066802421795/721456182069559397
His website, http://54.37.231.32, seems to only have a home page. The behavior reported is that search is not working. Based on the reported issue here, it would seem that ombaiz is experiencing the same problem (considering he has only a home page, there are no search results).
anikethsaha commentedon Jun 14, 2020
I can confirm search is not working in homepage even in our docs site
ixdarchitects commentedon Jun 26, 2020
May I suggest docsify team have a high level review of the search feature.
The search should be flexible enough to be place at different pages/levels:
markbattistella commentedon Oct 11, 2020
I've got private facing docs site with this issue too - but our home page only is the
_coverpage. Clicking "View Documentation" to jump to item 1 in the TOC the search doesn't show. A hard refresh shows it, but only then. I've tested the order of the scripts loading, but hasn't changed anythingsy-records commentedon Oct 12, 2020
@markbattistella In docsify.js.org, I can't reproduce the problem you're talking about.
markbattistella commentedon Oct 12, 2020
@sy-records I made this repo: https://github.com/markbattistella/docsify-searchTest to show how I have it set up and the search doesn't auto load. I tried getting it working gh-pages but i couldn't get it working in the small amount of time :)
sy-records commentedon Oct 12, 2020
@markbattistella Your problem is caused by your
docsify-autoheadersplugin, Just remove thescope.joetidee commentedon Oct 16, 2020
Am I right in saying that the Search plugin only indexes links on pages you have already visited? In which case, it's a bit of a useless feature.