@@ -113,17 +113,21 @@ end
113113desc 'Generate docs'
114114task :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
127131end
128132
129133
0 commit comments