Giter Site home page Giter Site logo

Comments (14)

LisaFC avatar LisaFC commented on August 16, 2024 1

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.

from docsy.

roidelapluie avatar roidelapluie commented on August 16, 2024 1

request.open("GET", "/index.json", true); => that should repect base url and use relative URL

from docsy.

theletterf avatar theletterf commented on August 16, 2024 1

@LisaFC @roidelapluie PR open, at last. :)

#142

from docsy.

LisaFC avatar LisaFC commented on August 16, 2024 1

This is working and checked in thanks to @theletterf :)

from docsy.

LisaFC avatar LisaFC commented on August 16, 2024

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/

from docsy.

theletterf avatar theletterf commented on August 16, 2024

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.

from docsy.

theletterf avatar theletterf commented on August 16, 2024

@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! :-)

from docsy.

roidelapluie avatar roidelapluie commented on August 16, 2024

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.

from docsy.

theletterf avatar theletterf commented on August 16, 2024

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?

image

from docsy.

roidelapluie avatar roidelapluie commented on August 16, 2024

@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 ;)

from docsy.

LisaFC avatar LisaFC commented on August 16, 2024

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

from docsy.

theletterf avatar theletterf commented on August 16, 2024

Will try to resume development soon!

from docsy.

theletterf avatar theletterf commented on August 16, 2024

@roidelapluie Not sure how to fix the relative path issue. It's working for me.

from docsy.

theletterf avatar theletterf commented on August 16, 2024

Pleasure working with you, @LisaFC and @tekezo ! :)

from docsy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.