diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..8da05d40 --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/docs/Gemfile b/docs/Gemfile index 7840e3b9..2c4076d8 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -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 diff --git a/docs/_config.yml b/docs/_config.yml index ded54b54..caf85537 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -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