diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9133e7a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: ruby +cache: bundler +script: + - bundle exec jekyll algolia +branches: + only: + - master +rvm: + - 2.4 diff --git a/Gemfile b/Gemfile index 37f5eaa..9aec341 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,3 @@ source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins +gem 'jekyll-algolia', group: :jekyll_plugins diff --git a/Gemfile.lock b/Gemfile.lock index fa07042..9e858bf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,6 +8,12 @@ GEM tzinfo (~> 1.1) addressable (2.5.2) public_suffix (>= 2.0.2, < 4.0) + algolia_html_extractor (2.5.2) + json (~> 2.0) + nokogiri (~> 1.8.2) + algoliasearch (1.19.2) + httpclient (~> 2.8, >= 2.8.3) + json (>= 1.5.1) coffee-script (2.4.1) coffee-script-source execjs @@ -26,6 +32,7 @@ GEM faraday (0.14.0) multipart-post (>= 1.2, < 3) ffi (1.9.23) + filesize (0.1.1) forwardable-extended (2.6.0) gemoji (3.0.0) github-pages (180) @@ -83,6 +90,7 @@ GEM activesupport (>= 2) nokogiri (>= 1.4) http_parser.rb (0.6.0) + httpclient (2.8.3) i18n (0.9.5) concurrent-ruby (~> 1.0) jekyll (3.7.3) @@ -98,6 +106,15 @@ GEM pathutil (~> 0.9) rouge (>= 1.7, < 4) safe_yaml (~> 1.0) + jekyll-algolia (1.3.4) + algolia_html_extractor (~> 2.5.2) + algoliasearch (~> 1.18) + filesize (~> 0.1) + jekyll (~> 3.0) + json (~> 2.0) + nokogiri (~> 1.6) + progressbar (~> 1.9) + verbal_expressions (~> 0.1.5) jekyll-avatar (0.5.0) jekyll (~> 3.0) jekyll-coffeescript (1.1.1) @@ -192,6 +209,7 @@ GEM gemoji (~> 3.0) html-pipeline (~> 2.2) jekyll (~> 3.0) + json (2.1.0) kramdown (1.16.2) liquid (4.0.0) listen (3.1.5) @@ -213,6 +231,7 @@ GEM sawyer (~> 0.8.0, >= 0.5.3) pathutil (0.16.1) forwardable-extended (~> 2.6) + progressbar (1.9.0) public_suffix (2.0.5) rb-fsevent (0.10.3) rb-inotify (0.9.10) @@ -239,12 +258,14 @@ GEM tzinfo (1.2.5) thread_safe (~> 0.1) unicode-display_width (1.3.0) + verbal_expressions (0.1.5) PLATFORMS ruby DEPENDENCIES github-pages + jekyll-algolia BUNDLED WITH 1.16.1 diff --git a/_config.yml b/_config.yml index 0ee0f36..1d571e8 100644 --- a/_config.yml +++ b/_config.yml @@ -28,6 +28,11 @@ kramdown: input: GFM toc_levels: "1,2" +algolia: # Search + application_id: HOJ487LP0L + index_name: qunitjs + search_only_api_key: aed00982db05bd21dd05310be057bda8 + exclude: - Gemfile - Gemfile.lock diff --git a/_includes/search.html b/_includes/search.html new file mode 100644 index 0000000..59a3ec2 --- /dev/null +++ b/_includes/search.html @@ -0,0 +1,39 @@ +