Comments (14)
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.
request.open("GET", "/index.json", true); => that should repect base url and use relative URL
from docsy.
@LisaFC @roidelapluie PR open, at last. :)
from docsy.
This is working and checked in thanks to @theletterf :)
from docsy.
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.
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.
@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.
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.
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?
from docsy.
@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.
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.
Will try to resume development soon!
from docsy.
@roidelapluie Not sure how to fix the relative path issue. It's working for me.
from docsy.
Pleasure working with you, @LisaFC and @tekezo ! :)
from docsy.
Related Issues (20)
- The menu does not switch sides when the site changes to RTL HOT 2
- No search results with gcs_engine_id. HOT 1
- Unable to use swagger UI short code HOT 9
- Ensure RTL works when Docsy is used via Hugo modules
- Embed Docsy version in `<meta>` tag of generated pages
- Back to top or fixed menu HOT 1
- Hamburger navigation menu not responsive HOT 12
- Problem when bindingJson with date value
- Language dropdown hidden for narrow displays
- My new issue HOT 1
- Repository Links and other page information
- Main Menu url being re-written incorrectly
- Taxonomy supports LinkedTitle HOT 1
- Show only one year when copyright year range is a signle year
- TOCSS: failed to transform "/scss/main.scss" - The target selector was not found. Use "@extend .td-box--dark !optional" HOT 1
- openapi and go-gin: accessing internal model info HOT 2
- Broken JS and CSS paths with `hugo serve` since Hugo v0.123.0 HOT 7
- Page feedback improvements
- Drop `rss_sections` from the user guide HOT 4
- iPhone dropdown navbar layout shift
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docsy.