Skip to content

Commit e9dad5d

Browse files
committed
chore(Rakefile): rewrite version numbers in all index files
1 parent 54895fc commit e9dad5d

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

Rakefile

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,21 @@ end
113113
desc 'Generate docs'
114114
task :docs => [:init] do
115115
`node docs/src/gen-docs.js`
116-
rewrite_file(path_to('docs/.htaccess')) do |content|
117-
content.sub!('"NG_VERSION_FULL"', NG_VERSION.full)
118-
end
119-
rewrite_file(path_to('docs/index.html')) do |content|
120-
content.sub!('"NG_VERSION_FULL"', NG_VERSION.full).
121-
sub!('"NG_VERSION_STABLE"', NG_VERSION.stable)
122-
end
123-
rewrite_file(path_to('docs/docs-scenario.html')) do |content|
116+
117+
[ path_to('docs/.htaccess'),
118+
path_to('docs/index.html'),
119+
path_to('docs/index-debug.html'),
120+
path_to('docs/index-nocache.html'),
121+
path_to('docs/index-jq.html'),
122+
path_to('docs/index-jq-debug.html'),
123+
path_to('docs/index-jq-nocache.html'),
124+
path_to('docs/docs-scenario.html')
125+
].each do |src|
126+
rewrite_file(src) do |content|
124127
content.sub!('"NG_VERSION_FULL"', NG_VERSION.full).
125-
sub!('"NG_VERSION_STABLE"', NG_VERSION.stable)
128+
sub('"NG_VERSION_STABLE"', NG_VERSION.stable)
126129
end
130+
end
127131
end
128132

129133

0 commit comments

Comments
 (0)