jekyll-bootstrap-doc icon indicating copy to clipboard operation
jekyll-bootstrap-doc copied to clipboard

Search

Open dovy opened this issue 9 years ago • 3 comments
trafficstars

Any way we can add a logical search by generating a keywords json file or something?

dovy avatar May 18 '16 15:05 dovy

Github Pages does not allow custom ruby plugins, so it's impossible to generate a search engine datasource unless loading all pages everytime in the browser, which I don't want.

I leave it open if this situation changes one day, I too would like this feature.

mistic100 avatar May 18 '16 15:05 mistic100

Solution 1 : use https://github.com/slashdotdash/jekyll-lunr-js-search locally and commit the generated files. I'm worried about locating the result in the page itself, for example if I search "Template" in QueryBuilder doc, it should propose http://querybuilder.js.org/#templates and not just http://querybuilder.js.org/. This can be very tricky to identify the relevant section.

Solution 2 : Google Custom Search (does not address anchors anyway)

mistic100 avatar May 18 '16 17:05 mistic100

@dovy @mistic100: Something I have used in a few projects with success https://github.com/christian-fei/Simple-Jekyll-Search

It has some issues (see their issues), but can be extended to do many things, see https://github.com/christian-fei/Simple-Jekyll-Search/issues/82#issuecomment-328856889.

XhmikosR avatar Oct 20 '17 20:10 XhmikosR