X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs.js;h=6af0dda2c65b3e4e08a52b48ecc4a3d23eea3cbb;hb=7376856dcf57f0283a3174b9e3e0ab594829ee93;hp=88c56c8d4a12b6b406f338feb29fb5270238d7c7;hpb=4ca3b835e83eb46262ef61f3844d2a0a466e1875;p=gnome.introspection-doc-generator diff --git a/docs.js b/docs.js index 88c56c8..6af0dda 100644 --- a/docs.js +++ b/docs.js @@ -51,9 +51,10 @@ File.list(__script_path__ + '/templates/').forEach(function(f) { continue; } langs.push({ - cls_template : new Template(__script_path__ + '/templates/' + f + '/class.html'), - cls_ix_template : new Template(__script_path__ + '/templates/' + f + '/class_ix.html'), - reference_template : new Template(__script_path__ + '/templates/' + f + '/references.html'), + name : f, + cls_template : new Template(__script_path__ + '/templates/' + f + '/class.html'), + cls_ix_template : new Template(__script_path__ + '/templates/' + f + '/class_ix.html'), + reference_template : new Template(__script_path__ + '/templates/' + f + '/references.html'), }); }); @@ -84,11 +85,14 @@ ns_list.forEach(function(ns_name) ns['left_bar'] = cls_ix_template.process(ns); - // namespace template - Gio.simple_write(outputdir + '/'+ ns_name + '.html', cls_template.process(ns)); - - // left bar index of elements in namespace... - Gio.simple_write(outputdir + '/_ix_'+ ns_name + '.shtml', cls_ix_template.process(ns)); + langs.forEach(function(lang) { + // namespace template + Gio.simple_write(outputdir + '/'+ lang + '/' +ns_name + '.html', lang.cls_template.process(ns)); + + // left bar index of elements in namespace... + Gio.simple_write(outputdir + '/'+ lang + '/_ix_'+ ns_name + '.shtml', lang.cls_ix_template.process(ns)); + + }); var actions = {