diff --git a/Rakefile b/Rakefile index ab8036d8..8f2d9a5c 100644 --- a/Rakefile +++ b/Rakefile @@ -270,6 +270,22 @@ 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") + 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") + end + + File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/docs-scenario.html", File::RDWR) do |f| text = f.read f.truncate 0 diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js index 4649bec3..1e1474d8 100755 --- a/docs/src/gen-docs.js +++ b/docs/src/gen-docs.js @@ -43,10 +43,17 @@ function writeTheRest(writesFuture) { writesFuture.push(writer.copyDir('img')); writesFuture.push(writer.copyDir('examples')); writesFuture.push(writer.copyTpl('index.html')); - writesFuture.push(writer.copy('docs/src/templates/index.html', - 'build/docs/index-jq.html', - '', - '