mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-04 05:04:44 +00:00
chore(Rakefile): rewrite version numbers in all index files
This commit is contained in:
parent
54895fc2a1
commit
e9dad5dbf4
1 changed files with 13 additions and 9 deletions
22
Rakefile
22
Rakefile
|
|
@ -113,17 +113,21 @@ end
|
||||||
desc 'Generate docs'
|
desc 'Generate docs'
|
||||||
task :docs => [:init] do
|
task :docs => [:init] do
|
||||||
`node docs/src/gen-docs.js`
|
`node docs/src/gen-docs.js`
|
||||||
rewrite_file(path_to('docs/.htaccess')) do |content|
|
|
||||||
content.sub!('"NG_VERSION_FULL"', NG_VERSION.full)
|
[ path_to('docs/.htaccess'),
|
||||||
end
|
path_to('docs/index.html'),
|
||||||
rewrite_file(path_to('docs/index.html')) do |content|
|
path_to('docs/index-debug.html'),
|
||||||
content.sub!('"NG_VERSION_FULL"', NG_VERSION.full).
|
path_to('docs/index-nocache.html'),
|
||||||
sub!('"NG_VERSION_STABLE"', NG_VERSION.stable)
|
path_to('docs/index-jq.html'),
|
||||||
end
|
path_to('docs/index-jq-debug.html'),
|
||||||
rewrite_file(path_to('docs/docs-scenario.html')) do |content|
|
path_to('docs/index-jq-nocache.html'),
|
||||||
|
path_to('docs/docs-scenario.html')
|
||||||
|
].each do |src|
|
||||||
|
rewrite_file(src) do |content|
|
||||||
content.sub!('"NG_VERSION_FULL"', NG_VERSION.full).
|
content.sub!('"NG_VERSION_FULL"', NG_VERSION.full).
|
||||||
sub!('"NG_VERSION_STABLE"', NG_VERSION.stable)
|
sub('"NG_VERSION_STABLE"', NG_VERSION.stable)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue