18F / jekyll_pages_api_search

DEPRECATED - Jekyll search plugin based on lunr.js and jekyll_pages_api
https://rubygems.org/gems/jekyll_pages_api_search
Other
39 stars 8 forks source link

Standalone executable #8

Closed mbland closed 9 years ago

mbland commented 9 years ago

Needs better input parsing and documentation, but is a functional proof-of-concept. Build an identical index to the original plugin and copied over the bundle files using:

$ mkdir -p _tmp/_site/api/v1
$ cp ../hub/_site/api/v1/pages.json _tmp/_site/api/v1/
$ bundle exec bin/jekyll_pages_api_search _tmp/_site ../hub/_config.yml \
  _tmp/_site/api/v1/pages.json

Could stand to provide options to output the Liquid tags as Hugo shortcodes. Still, a very promising initial proof-of-concept.

cc: @afeld

afeld commented 9 years ago

Good start!

/cc https://github.com/18F/jekyll_pages_api/pull/27

mbland commented 9 years ago

@afeld This is ready for another look! :-)

afeld commented 9 years ago

Looks good! Just the one comment, though feel free to merge this and do it separately.

mbland commented 9 years ago

Went ahead and moved the code and added tests. @afeld: PTAL?

afeld commented 9 years ago

Tests failed :cry:

mbland commented 9 years ago

Ah, that's a Rakefile config problem. Should be fixed now. Also added logic to address the empty bundle problem from #6 and #7.