aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/gen-docs.js
diff options
context:
space:
mode:
authorIgor Minar2011-01-10 21:03:50 -0800
committerIgor Minar2011-01-10 21:03:50 -0800
commit4f5d5029c278fdecd7a80b217bfc21461e30abe8 (patch)
tree58c5c99629179cd0984b4ea6cd2cbf53f9d3cd3a /docs/src/gen-docs.js
parentf534def0c63a8dddd5ce7ddc92363a26b66bac54 (diff)
downloadangular.js-4f5d5029c278fdecd7a80b217bfc21461e30abe8.tar.bz2
offline docs
- freezing syntaxhighlighter and jquery under docs/src/templates/ - for jquery I just used a symlink to lib/jquery not an ideal solution but writer.js is not very flexible and I didn't want to mess with it - changed docs' index.html to point to the local resources
Diffstat (limited to 'docs/src/gen-docs.js')
-rw-r--r--docs/src/gen-docs.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js
index b4e30a53..0dee586b 100644
--- a/docs/src/gen-docs.js
+++ b/docs/src/gen-docs.js
@@ -30,13 +30,19 @@ var writes = callback.chain(function(){
writer.copy('doc_widgets.css', writes.waitFor());
writer.copy('docs-scenario.html', writes.waitFor());
writer.output('docs-scenario.js', ngdoc.scenarios(docs), writes.waitFor());
+ writer.copy('syntaxhighlighter/shBrushJScript.js', writes.waitFor());
+ writer.copy('syntaxhighlighter/shBrushXml.js', writes.waitFor());
+ writer.copy('syntaxhighlighter/shCore.css', writes.waitFor());
+ writer.copy('syntaxhighlighter/shCore.js', writes.waitFor());
+ writer.copy('syntaxhighlighter/shThemeDefault.css', writes.waitFor());
+ writer.copy('jquery.min.js', writes.waitFor());
});
writes.onDone(function(){
console.log('DONE. Generated ' + docs.length + ' pages in ' +
(now()-start) + 'ms.' );
});
work.onDone(writes);
-writer.makeDir('build/docs', work);
+writer.makeDir('build/docs/syntaxhighlighter', work);
///////////////////////////////////
function now(){ return new Date().getTime(); }