JSDOC/Introspect/NameSpace.js
[gnome.introspection-doc-generator] / 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