Skip to content

Commit dc32aeb

Browse files
committed
updated
1 parent 0797990 commit dc32aeb

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ algolia:
1212
application_id: 'G160Y1N5OT'
1313
index_name: 'codeception'
1414
read_only_api_key: 'c264188100c4fb7017c4f5702a7d4b8d'
15-
record_css_selector: '.page'
15+
record_css_selector: '.page'
16+
allowed_extensions:
17+
- .markdown
1618
excluded_files:
1719
- index.html
1820
- docs-2.0

_plugins/search.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
class AlgoliaSearchJekyllPush < Jekyll::Command
22
class << self
33
# Hook to exclude some files from indexing
4-
def custom_hook_excluded_file?(file)
5-
return true if file.path =~ %r{^/_site/}
6-
return true if file.path =~ %r{^/_docs-1.8/}
7-
return true if file.path =~ %r{^/_docs-2.0/}
8-
return true if file.path =~ %r{^/_slides/}
9-
return true if file.basename =~ %r{^2012-}
10-
return true if file.basename =~ %r{^2013-}
11-
return true if file.basename =~ %r{^2014-}
12-
false
13-
end
4+
# def custom_hook_excluded_file?(file)
5+
# return true if file.path =~ %r{^/_site/}
6+
# return true if file.path =~ %r{^/_docs-1\.8/}
7+
# return true if file.path =~ %r{^/_docs-2\.0/}
8+
# return true if file.path =~ %r{^/_slides/}
9+
# return true if file.basename =~ %r{^2012-}
10+
# return true if file.basename =~ %r{^2013-}
11+
# return true if file.basename =~ %r{^2014-}
12+
# false
13+
# end
1414
end
1515
end

0 commit comments

Comments
 (0)