X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs.js;h=386f14dbd8a0a1e6c69d979df7d086284b16ecd3;hb=d1e403ae3b87c1700584bb0cbadca2048b80351c;hp=82aea6e3bcc1d5b7869371c1e1223f26593f2201;hpb=00db120fc87358a55c448ee88ccff7dbb410009e;p=gnome.introspection-doc-generator diff --git a/docs.js b/docs.js index 82aea6e..386f14d 100644 --- 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