From 4f5d5029c278fdecd7a80b217bfc21461e30abe8 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 10 Jan 2011 21:03:50 -0800 Subject: 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 --- docs/src/gen-docs.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/src/gen-docs.js') 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(); } -- cgit v1.2.3