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
{{ message }}
Repository navigation
Search functionality using local search instead of GCS #45
To have a local search functionality (indexing words locally) instead of GCS into the internet.
More
First, I found docsy is a great theme for my internal/personal documentation/handbook. In production, I separate the contents (writings) with a static page generator. What functionality I love is indexing and searching capability through a lot of articles I have.
Feature request
Is there any roadmap to add local search functionality to docsy theme?
Is this only for Google team's needs btw?
Thank you.
Reacted by Fabrizio Ferri-Benedetti, Deborah Barnard, Stefan (Shalom), Steve Arrants, James Rhea, Robb Romans, Benoit Gagnon, Lance Leonard, Julien, Robin van Boven and 1 more
Reacted by Fabrizio Ferri-Benedetti, Julien and Robin van Boven
Reacted by Fabrizio Ferri-Benedetti, Julien and Robin van Boven
Adding lunrjs or similar is the way to go, but it’s not trivial for non-developers. Anyone willing to help with this? Or at least provide instructions on how to integrate offline search in Docsy.
@LisaFC I know it’s Google’s, but adding local/offline search can dramatically boost the theme popularity, especially when docs are not meant to be indexed or published in the open. Otherwise, well, guess it’ll be forking time! :-)
Oh yeah, I think having non-Google/local search as an option in the theme is great if anyone wants to work on adding it - we chose the Google custom search engine as our default because it was easy and free to add, not because it's from Google.
Activity
LisaFC commentedon May 1, 2019
Hi, no, it's not just for Google teams - anyone can use it!
We haven't planned adding a local search facility specifically to our theme, but there are various search options available for Hugo sites that you can try with it (some free, some not): https://gohugo.io/tools/search/
theletterf commentedon Jul 17, 2019
Adding lunrjs or similar is the way to go, but it’s not trivial for non-developers. Anyone willing to help with this? Or at least provide instructions on how to integrate offline search in Docsy.
theletterf commentedon Jul 17, 2019
@LisaFC I know it’s Google’s, but adding local/offline search can dramatically boost the theme popularity, especially when docs are not meant to be indexed or published in the open. Otherwise, well, guess it’ll be forking time! :-)
LisaFC commentedon Jul 17, 2019
Oh yeah, I think having non-Google/local search as an option in the theme is great if anyone wants to work on adding it - we chose the Google custom search engine as our default because it was easy and free to add, not because it's from Google.
roidelapluie commentedon Jul 24, 2019
It would be great if docsy could bring along search (e.g. with https://lunrjs.com/).
Other tools do this (https://squidfunk.github.io/mkdocs-material/getting-started/#site-search) and it is fast and useful for medium websites that are not available over the internet.
theletterf commentedon Jul 24, 2019
I've offline search with Lunr.js working in my fork. Waiting a bit to polish the code before I open the PR. Could someone try it out and let me know?
roidelapluie commentedon Jul 24, 2019
request.open("GET", "/index.json", true); => that should repect base url and use relative URL
roidelapluie commentedon Jul 24, 2019
@theletterf you should put a small doc about how to enable it. I struggle with generating the index.json. And there are issue with relative url's.
I am happy to test this further asap when I know how to generate the index.json ;)
LisaFC commentedon Sep 25, 2019
I'd love if we had a doc about this!
We will also shortly have (not-offline) Algolia docsearch enabled so there are lots of search options to choose from: #127
theletterf commentedon Oct 10, 2019
Will try to resume development soon!
theletterf commentedon Oct 23, 2019
@LisaFC @roidelapluie PR open, at last. :)
#142
theletterf commentedon Oct 23, 2019
@roidelapluie Not sure how to fix the relative path issue. It's working for me.
LisaFC commentedon Nov 13, 2019
This is working and checked in thanks to @theletterf :)
theletterf commentedon Nov 13, 2019
Pleasure working with you, @LisaFC and @tekezo ! :)
tests: close round-12 adversarial findings across both nets and CI