We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 673a53b commit 17643dbCopy full SHA for 17643db
Rules
@@ -7,9 +7,8 @@ ignore '*/_*'
7
preprocess do
8
next if ENV['NANOC_ENV'] == 'development'
9
10
- puts "Preprocessing"
+ warn "Preprocessing"
11
Nanoc::Filters::AlgoliaFilter.new(config: config).destroy_index
12
- puts "Index destroyed"
13
end
14
15
compile '*' do
lib/algolia.rb
@@ -55,7 +55,7 @@ def destroy_index
55
return if @skip_index
56
57
@index.clear_objects
58
- puts "Index #{@index.name} cleared"
+ warn "Index #{@index.name} cleared"
59
60
61
def run(content, params = {})
@@ -72,7 +72,7 @@ def run(content, params = {})
72
raw: content
73
).wait
74
75
- puts "Indexed #{item.identifier} in Algolia"
+ warn "Indexed #{item.identifier} in Algolia"
76
77
78
params[:preview] ? extract_text(content) : content
0 commit comments