diff options
Diffstat (limited to 'docs/src/gen-docs.js')
| -rwxr-xr-x | docs/src/gen-docs.js | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js index 4649bec3..93d0038e 100755 --- a/docs/src/gen-docs.js +++ b/docs/src/gen-docs.js @@ -42,11 +42,30 @@ 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', - '<!-- jquery place holder -->', - '<script src=\"jquery.min.js\"><\/script>')); + + var manifest = 'manifest="appcache.manifest"', + jq = '<script src="jquery.min.js"></script>', + ngMin = '<script src="../angular.min.js" ng:autobind></script>', + ng = '<script src="../angular.js" ng:autobind></script>' + + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index.html', + writer.replace, {'doc:manifest': manifest, + '<!-- angular script place holder -->': ngMin})); + + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq.html', + writer.replace, {'doc:manifest': manifest, + '<!-- angular script place holder -->': ngMin, + '<!-- jquery place holder -->': jq})); + + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-debug.html', + writer.replace, {'doc:manifest': '', + '<!-- angular script place holder -->': ng})); + + writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq-debug.html', + writer.replace, {'doc:manifest': '', + '<!-- angular script place holder -->': ng, + '<!-- jquery place holder -->': jq})); + writesFuture.push(writer.copyTpl('offline.html')); writesFuture.push(writer.copyTpl('docs-scenario.html')); writesFuture.push(writer.copyTpl('jquery.min.js')); |
