We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7371b20 commit 05f70deCopy full SHA for 05f70de
script/book.rb
@@ -156,14 +156,10 @@ def save
156
end
157
158
front_matter = { "redirect_to" => "book/#{@language_code}/v#{@edition}" }
159
- File.open(self.absolute_path("../_index.html"), 'w') do |file|
160
- file.write(self.wrap_front_matter(front_matter))
161
- end
+ File.write(self.absolute_path("../_index.html"), self.wrap_front_matter(front_matter))
162
163
if @language_code == "en"
164
- File.open(self.absolute_path("../../_index.html"), 'w') do |file|
165
166
+ File.write(self.absolute_path("../../_index.html"), self.wrap_front_matter(front_matter))
167
168
169
FileUtils.mkdir_p(self.absolute_path("ch00"))
0 commit comments