docs.js
authorAlan Knowles <alan@akkbhome.com>
Tue, 22 Jun 2010 14:46:09 +0000 (22:46 +0800)
committerAlan Knowles <alan@akkbhome.com>
Tue, 22 Jun 2010 14:46:09 +0000 (22:46 +0800)
docs.js

diff --git a/docs.js b/docs.js
index 82aea6e..386f14d 100644 (file)
--- a/docs.js
+++ b/docs.js
@@ -158,6 +158,10 @@ langs.forEach(function(lang) {
 
     }
 );
-var ix_template = new Template(__script_path__ + '/templates/index.html');
-Gio.simple_write(outputdir + '/index.html', ix_template.process(ns_idx));
-File.silentRecursiveCopy(__script_path__ + '/templates/resources/', outputdir, Gio.FileCopyFlags.OVERWRITE);
+
+// set up index and resources.
+langs.forEach(function(lang) {
+    var ix_template = new Template(__script_path__ + '/templates/' + lang.name + '/index.html');
+    Gio.simple_write(outputdir + '/' + lang.name +  '/index.html', ix_template.process(ns_idx));
+    File.silentRecursiveCopy(__script_path__ + '/templates/resources/', outputdir + '/'  lang.name , Gio.FileCopyFlags.OVERWRITE);
+});
\ No newline at end of file