You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
desc'Generate guides (for authors), use ONLY=foo to process just "foo.md"'
4
-
task:generate=>'generate:html'
3
+
taskgenerate: "generate:html"
4
+
5
+
# Guides are written in UTF-8, but the environment may be configured for some
6
+
# other locale, these tasks are responsible for ensuring the default external
7
+
# encoding is UTF-8.
8
+
#
9
+
# Real use cases: Generation was reported to fail on a machine configured with
10
+
# GBK (Chinese). The docs server once got misconfigured somehow and had "C",
11
+
# which broke generation too.
12
+
task:encodingdo
13
+
%w(LANGLANGUAGELC_ALL).eachdo |env_var|
14
+
ENV[env_var]="en_US.UTF-8"
15
+
end
16
+
end
5
17
6
18
namespace:generatedo
7
-
8
19
desc"Generate HTML guides"
9
-
task:htmldo
20
+
taskhtml: :encodingdo
10
21
ENV["WARNINGS"]="1"# authors can't disable this
11
22
ruby"rails_guides.rb"
12
23
end
13
24
14
25
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