diff options
| -rw-r--r-- | Rakefile | 18 | ||||
| -rwxr-xr-x | docs/src/gen-docs.js | 8 | ||||
| -rw-r--r-- | docs/src/ngdoc.js | 4 |
3 files changed, 28 insertions, 2 deletions
@@ -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 diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js index c7b37025..5e642686 100755 --- a/docs/src/gen-docs.js +++ b/docs/src/gen-docs.js @@ -48,9 +48,17 @@ function writeTheRest(writesFuture) { writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index.html', writer.replace, {'doc:manifest': manifest})); + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-nocache.html', + writer.replace, {'doc:manifest': ''})); + + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq.html', writer.replace, {'doc:manifest': manifest})); + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq-nocache.html', + writer.replace, {'doc:manifest': ''})); + + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-debug.html', writer.replace, {'doc:manifest': ''})); diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index abe5e1d7..8a20e64a 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -570,14 +570,14 @@ function scenarios(docs){ var specs = []; specs.push('describe("angular+jqlite", function() {'); - appendSpecs(''); + appendSpecs('index-nocache.html#!/'); specs.push('});'); specs.push(''); specs.push(''); specs.push('describe("angular+jquery", function() {'); - appendSpecs('index-jq.html#!/'); + appendSpecs('index-jq-nocache.html#!/'); specs.push('});'); return specs.join('\n'); |
