fix(Rakefile): index-jq.html needs to be rewritten like index.html

This commit is contained in:
Igor Minar 2011-07-29 19:35:27 -07:00
parent 761997e082
commit eb758bc605

View file

@ -261,6 +261,15 @@ task :package => [:clean, :compile, :docs] do
f.write text.sub('angular.min.js', "angular-#{NG_VERSION.full}.min.js")
end
File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index-jq.html", File::RDWR) do |f|
text = f.read
f.truncate 0
f.rewind
f.write text.sub('angular.min.js', "angular-#{NG_VERSION.full}.min.js")
end
File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/docs-scenario.html", File::RDWR) do |f|
text = f.read
f.truncate 0