kinow opened a new pull request, #146:
URL: https://github.com/apache/jena-site/pull/146

   Had some 40 minutes this morning while waiting to go out for a local party 
(st eulalia with giants and castellers! :partying_face:), so had a go at adding 
search to Jena's website.
   
   Hugo has a page to [Search for your Hugo 
Website](https://gohugo.io/tools/search/) with links go gists, libraries, and 
posts. After some searching, I found this one to be up to date and very simple 
to follow: https://makewithhugo.com/add-search-to-a-hugo-site/ 
   
   It uses Fuse.js, a fast and dependency-free JS library (really rare!) to 
perform full text search with support to fuzzy searching. The post also uses 
Mark.js, which I am not sure if was really necessary, as it's a library to 
highlight words, but I preferred to just add it for now and decide to drop it 
or not later.
   
   The layout of the search results was not customized, we can change how they 
are displayed later if needed. I focused more on the search input field/form 
for now (due to short time). See screenshots below where I searched for 
"infrenc":
   
   
![image](https://user-images.githubusercontent.com/304786/218301142-660b6bd4-267b-4152-ba90-b0f3cd46692c.png)
   
   
![image](https://user-images.githubusercontent.com/304786/218301165-795f3847-87ef-4f87-96be-32e7de04e29a.png)
   
   And, of course, if you search for a correct term, then it's highlighted in 
the results, like "query builder":
   
   
![image](https://user-images.githubusercontent.com/304786/218301220-eb814c85-8753-4c09-90b5-07fd001116c7.png)
   
   That's it :+1: 
   Cheers,
   
   -Bruno


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jena.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to