Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fa6c8c3

Browse files
committed
chore(Rakefile): rewrite version numbers in all index files
1 parent f7ac8ef commit fa6c8c3

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

Rakefile

+13-9
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)