aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject svn commit: r1719581 - /aurora/site/Rakefile
Date Fri, 11 Dec 2015 22:22:36 GMT
Author: wfarner
Date: Fri Dec 11 22:22:36 2015
New Revision: 1719581

URL: http://svn.apache.org/viewvc?rev=1719581&view=rev
Log:
Open markdown with utf-8 encoding due to some files with special characters.

Modified:
    aurora/site/Rakefile

Modified: aurora/site/Rakefile
URL: http://svn.apache.org/viewvc/aurora/site/Rakefile?rev=1719581&r1=1719580&r2=1719581&view=diff
==============================================================================
--- aurora/site/Rakefile (original)
+++ aurora/site/Rakefile Fri Dec 11 22:22:36 2015
@@ -37,7 +37,7 @@ task :update_docs do
   Dir.chdir("#{docs_dir}/latest/") {
     Dir.glob('*.md').each { |doc|
       puts "working on: #{doc}"
-      IO.write(doc, File.open(doc) { |f|
+      IO.write(doc, File.open(doc, :encoding => 'utf-8') { |f|
         f.read.gsub(/\(([A-Za-z0-9-]+)(\.md)\)/, '(/documentation/latest/\1/)')
       })
     }
@@ -50,4 +50,4 @@ end
 desc "Run the site in development mode. Preview available at http://localhost:4567/"
 task :dev do
   system("middleman server")
-end
\ No newline at end of file
+end



Mime
View raw message