Skip to content

Commit 30772fa

Browse files
committed
fix generate encoding
1 parent f148093 commit 30772fa

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Dockerfile

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
FROM ruby:2.4.1
22

3-
ENV LC_ALL C.UTF-8
4-
ENV LANG en_US.UTF-8
5-
ENV LANGUAGE en_US.UTF-8
6-
73
RUN mkdir /app
84
WORKDIR /app
95

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace :guides do
1919
desc "Generate HTML guides"
2020
task html: :encoding do
2121
ENV["WARNINGS"] = "1" # authors can't disable this
22-
ruby "rails_guides.rb"
22+
ruby "-E UTF-8 rails_guides.rb"
2323
end
2424

2525
desc "Generate .mobi file. The kindlegen executable must be in your PATH. You can get it for free from http://www.amazon.com/gp/feature.html?docId=1000765211"

0 commit comments

Comments
 (0)