aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/gen-docs.js
diff options
context:
space:
mode:
authorIgor Minar2011-05-10 11:16:00 -0700
committerIgor Minar2011-06-06 22:51:58 -0700
commit0fb37b08e778c348199a8a4909fad5ed9d920cdd (patch)
treeb42c4e682f4028679b36ceb6d27be775b7c46988 /docs/src/gen-docs.js
parent8fa598fa0076c2a0013302ccdbddb5b4bb28fc45 (diff)
downloadangular.js-0fb37b08e778c348199a8a4909fad5ed9d920cdd.tar.bz2
add resource merging
Diffstat (limited to 'docs/src/gen-docs.js')
-rw-r--r--docs/src/gen-docs.js26
1 files changed, 17 insertions, 9 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js
index 9edfaceb..1e5a09c4 100644
--- a/docs/src/gen-docs.js
+++ b/docs/src/gen-docs.js
@@ -27,19 +27,27 @@ var writes = callback.chain(function(){
writer.copyDir('img', writes.waitFor());
writer.copyDir('examples', writes.waitFor());
writer.copyTpl('index.html', writes.waitFor());
- writer.copyTpl('docs.js', writes.waitFor());
- writer.copyTpl('docs.css', writes.waitFor());
- writer.copyTpl('doc_widgets.js', writes.waitFor());
- writer.copyTpl('doc_widgets.css', writes.waitFor());
+ writer.merge(['docs.js',
+ 'doc_widgets.js'],
+ 'docs-combined.js',
+ writes.waitFor());
+ writer.merge(['docs.css',
+ 'doc_widgets.css'],
+ 'docs-combined.css',
+ writes.waitFor());
writer.copyTpl('docs-scenario.html', writes.waitFor());
writer.output('docs-scenario.js', ngdoc.scenarios(docs), writes.waitFor());
writer.output('sitemap.xml', new SiteMap(docs).render(), writes.waitFor());
writer.output('robots.txt', 'Sitemap: http://docs.angularjs.org/sitemap.xml\n', writes.waitFor());
- writer.copyTpl('syntaxhighlighter/shBrushJScript.js', writes.waitFor());
- writer.copyTpl('syntaxhighlighter/shBrushXml.js', writes.waitFor());
- writer.copyTpl('syntaxhighlighter/shCore.css', writes.waitFor());
- writer.copyTpl('syntaxhighlighter/shCore.js', writes.waitFor());
- writer.copyTpl('syntaxhighlighter/shThemeDefault.css', writes.waitFor());
+ writer.merge(['syntaxhighlighter/shCore.js',
+ 'syntaxhighlighter/shBrushJScript.js',
+ 'syntaxhighlighter/shBrushXml.js'],
+ 'syntaxhighlighter/syntaxhighlighter-combined.js',
+ writes.waitFor());
+ writer.merge(['syntaxhighlighter/shCore.css',
+ 'syntaxhighlighter/shThemeDefault.css'],
+ 'syntaxhighlighter/syntaxhighlighter-combined.css',
+ writes.waitFor());
writer.copyTpl('jquery.min.js', writes.waitFor());
});
writes.onDone(function(){