Activate Algolia search on documenation site

This commit is contained in:
Michael Rose 2018-03-09 14:52:47 -05:00
parent 588a044986
commit 4a03354667
3 changed files with 25 additions and 12 deletions

10
.travis.yml Normal file
View file

@ -0,0 +1,10 @@
language: ruby
cache: bundler
script:
- BUNDLE_GEMFILE=docs/Gemfile bundle exec jekyll algolia --config _config.yml
branches:
only:
# Change this to gh-pages if you're deploying using the gh-pages branch
- master
rvm:
- 2.4

View file

@ -6,10 +6,11 @@ gem "tzinfo-data"
gem "wdm", "~> 0.1.0" if Gem.win_platform?
# If you have any plugins, put them here!
# group :jekyll_plugins do
# gem "jekyll-paginate"
# gem "jekyll-sitemap"
# gem "jekyll-gist"
# gem "jekyll-feed"
# gem "jemoji"
# end
group :jekyll_plugins do
gem "jekyll-paginate"
gem "jekyll-sitemap"
gem "jekyll-gist"
gem "jekyll-feed"
gem "jemoji"
gem "jekyll-algolia"
end

View file

@ -57,12 +57,14 @@ atom_feed:
search : true # true, false (default)
search_full_content : true # true, false (default)
search_provider : lunr # lunr (default), algolia
search_provider : algolia # lunr (default), algolia
algolia:
application_id : # YOUR_APPLICATION_ID
index_name : # YOUR_INDEX_NAME
search_only_api_key : # YOUR_SEARCH_ONLY_API_KEY
powered_by : # true (default), false
application_id : QB6HVGBSBA # YOUR_APPLICATION_ID
index_name : minimal_mistakes # YOUR_INDEX_NAME
search_only_api_key : 9d5014e5bbc77372547bce778dfa5663 # YOUR_SEARCH_ONLY_API_KEY
powered_by : true # true (default), false
files_to_exclude:
- _posts/2017-11-28-post-exclude-search.md
# SEO Related
google_site_verification : "UQj93ERU9zgECodaaXgVpkjrFn9UrDMEzVamacSoQ8Y" # Replace this with your ID, or delete