diff --git a/Gemfile b/Gemfile index da1bd4da..f213163e 100644 --- a/Gemfile +++ b/Gemfile @@ -9,3 +9,6 @@ gem "jekyll-last-modified-at" # gem "torture", path: "../torture" gem "torture", git: "https://github.com/apotonick/torture" +group :jekyll_plugins do + gem 'algoliasearch-jekyll', '~> 0.7' +end diff --git a/Gemfile.lock b/Gemfile.lock index a7f1c38b..46e44337 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -15,6 +15,21 @@ GEM thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) addressable (2.4.0) + algoliasearch (1.16.0) + httpclient (~> 2.8.3) + json (>= 1.5.1) + algoliasearch-jekyll (0.8.0) + algoliasearch (~> 1.4) + appraisal (~> 2.1.0) + awesome_print (~> 1.6) + json (~> 1.8) + nokogiri (~> 1.6) + verbal_expressions (~> 0.1.5) + appraisal (2.1.0) + bundler + rake + thor (>= 0.14.0) + awesome_print (1.8.0) coffee-script (2.4.1) coffee-script-source execjs @@ -56,6 +71,7 @@ GEM html-pipeline (2.4.1) activesupport (>= 2, < 5) nokogiri (>= 1.4) + httpclient (2.8.3) i18n (0.7.0) jekyll (3.1.6) colorator (~> 0.1) @@ -112,6 +128,7 @@ GEM sawyer (~> 0.7.0, >= 0.5.3) pkg-config (1.1.7) public_suffix (1.5.3) + rake (12.1.0) rb-fsevent (0.9.8) rb-inotify (0.9.8) ffi (>= 0.5.0) @@ -126,20 +143,23 @@ GEM therubyracer (0.12.2) libv8 (~> 3.16.14.0) ref + thor (0.20.0) thread_safe (0.3.5) typhoeus (0.8.0) ethon (>= 0.8.0) tzinfo (1.2.2) thread_safe (~> 0.1) + verbal_expressions (0.1.5) PLATFORMS ruby DEPENDENCIES + algoliasearch-jekyll (~> 0.7) github-pages jekyll-last-modified-at therubyracer torture! BUNDLED WITH - 1.15.1 + 1.15.4 diff --git a/README.md b/README.md index 11ca674c..bec7bb2c 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ Currently, the `bower_components/font-awesome/fonts` is copied over to `/`. bundle exec jekyll serve -I +# Updating the search index + +bundle exec jekyll algolia push + # Push to master Always work on the `f6` branch. diff --git a/_config.yml b/_config.yml index 230d584b..2f7b3bad 100644 --- a/_config.yml +++ b/_config.yml @@ -22,3 +22,11 @@ include: gems: - jekyll-redirect-from - jekyll-last-modified-at +algolia: + application_id: 'fill_in' + index_name: 'trailblazer' + read_only_api_key: 'fill_in' + excluded_files: + - 404.html + - index.html + diff --git a/_includes/doc-2-1.html b/_includes/doc-2-1.html index ec73c0cb..575e7b4d 100644 --- a/_includes/doc-2-1.html +++ b/_includes/doc-2-1.html @@ -19,6 +19,7 @@ {% include top-bar.html %} +