Skip to content

Commit f47d805

Browse files
committed
tweak default_external variables, it needs with LANG=C environment
1 parent 3238415 commit f47d805

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Rakefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,16 @@ end
335335

336336
desc "Generates the Jekyll site"
337337
task :generate do
338+
require 'jekyll'
339+
# workaound for LANG=C environment
340+
module Jekyll::Convertible
341+
Encoding.default_external = Encoding::UTF_8
342+
end
338343
ENV['TZ'] = TIMEZONE
339-
sh 'jekyll --no-auto --no-server'
344+
345+
options = Jekyll.configuration({'auto' => false, 'server' => false})
346+
puts "Building site: #{options['source']} -> #{options['destination']}"
347+
Jekyll::Site.new(options).process
340348
end
341349

342350
desc "Generates the Jekyll site and starts local server"

0 commit comments

Comments
 (0)