AppImage / appimage.github.io

Given an URL to an AppImage, the GitHub action in this project inspects the AppImage and puts it into a community-maintained catalog
https://appimage.github.io/
Other
293 stars 540 forks source link

Add search to the website #1061

Open probonopd opened 5 years ago

probonopd commented 5 years ago

For example, Jekyll search using lunr.js https://learn.cloudcannon.com/jekyll/jekyll-search-using-lunr-js/ or https://github.com/christian-fei/Simple-Jekyll-Search/ (works on GH Pages, has see-as-you-type) or https://github.com/jekylltools/jekyll-tipue-search (No plugin necessary. Fully compatible with Github Pages.)

probonopd commented 5 years ago

Getting Error: SimpleJekyllSearch --- failed to get JSON (https://appimage.github.io/search.json). Why? https://appimage.github.io/search.json is there...

probonopd commented 5 years ago

https://jsonformatter.curiousconcept.com/ says: Invalid encoding, expecting UTF-8, UTF-16 or UTF-32.[Code 29, Structure 0]

probonopd commented 5 years ago

https://stackoverflow.com/questions/30757481/jekyll-json-incorrect-character-encoding has a similar problem but no solution.

probonopd commented 5 years ago

Note theContent-Type: application/json; charset=utf-8:

me@host:~$ wget --server-response   "https://appimage.github.io/search.json"
--2019-01-04 14:07:07--  https://appimage.github.io/search.json
Resolving appimage.github.io (appimage.github.io)... 185.199.109.153, 185.199.108.153, 185.199.111.153, ...
Connecting to appimage.github.io (appimage.github.io)|185.199.109.153|:443... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Server: GitHub.com
  Content-Type: application/json; charset=utf-8
  Last-Modified: Fri, 04 Jan 2019 12:51:04 GMT
  ETag: "5c2f56b8-1b01a"
  Access-Control-Allow-Origin: *
  Expires: Fri, 04 Jan 2019 13:16:14 GMT
  Cache-Control: max-age=600
  X-GitHub-Request-Id: 9400:0DAF:236E40A:2F46E4C:5C2F5A47
  Content-Length: 110618
  Accept-Ranges: bytes
  Date: Fri, 04 Jan 2019 13:07:07 GMT
  Via: 1.1 varnish
  Age: 52
  Connection: keep-alive
  X-Served-By: cache-hhn1533-HHN
  X-Cache: HIT
  X-Cache-Hits: 1
  X-Timer: S1546607227.271978,VS0,VE1
  Vary: Accept-Encoding
  X-Fastly-Request-ID: 32835b00548f65359a9a65df3d4dc164f02bb527
Length: 110618 (108K) [application/json]
DirtyF commented 5 years ago

There's a plugin for Algolia ot embed a powerful search on a jekyll website, it's deployable on Github Pages via Travis.

probonopd commented 5 years ago

Thanks for the pointer @DirtyF. Right now we are not deploying the website via Travis, but via the Jekyll runner built into GitHub. Makes for quicker deployments, would prefer to keep it that way if possible.

probonopd commented 5 years ago

https://github.com/christian-fei/Simple-Jekyll-Search/issues/115

maverick74 commented 4 years ago

@probonopd is there anything on the horizon about this?

A search field on the website is really (terribly) missed...

probonopd commented 4 years ago

Thanks for your feedback @maverick74, I'd like a search too, but I could not figure out how to do it in Jekyll. Pull requests would be highly welcome.