Skip to content

Commit

Permalink
search config edits
Browse files Browse the repository at this point in the history
  • Loading branch information
cldougl committed Oct 20, 2017
1 parent c25fad6 commit 8e65677
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ algolia:
- '*.png'
- '*.Rmd'
- '*.R'
- '*.json'
- '_posts/dashboards'
- '_posts/ggplot2'
- '_posts/ipython-notebooks'
Expand All @@ -54,6 +55,7 @@ algolia:
- '_posts/nodejs'
- '_posts/numpy'
- '_posts/pandas'
- '_posts/plotly_js/2015-04-05-plotly_js-index.html'
- '_posts/python'
- '_posts/r'
- '_posts/reference_pages'
Expand Down
9 changes: 9 additions & 0 deletions _plugins/search.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AlgoliaSearchJekyllPush < Jekyll::Command
class << self
# Hook to exclude some files from indexing
def custom_hook_excluded_file?(file)
return false if file.path =~ /index/
true
end
end
end

0 comments on commit 8e65677

Please sign in to comment.