aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 642ef567..0c9efcf9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -223,6 +223,24 @@ task :package => [:clean, :compile, :docs] do
end
+ File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index-nocache.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").
+ sub('/build/docs/', "/#{NG_VERSION.full}/docs-#{NG_VERSION.full}/")
+ end
+
+
+ File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index-jq-nocache.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").
+ sub('/build/docs/', "/#{NG_VERSION.full}/docs-#{NG_VERSION.full}/")
+ end
+
+
File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index-debug.html", File::RDWR) do |f|
text = f.read
f.truncate 0