X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs.js;h=57d0a693cf6063c84bf1e56e1f32995cc875295c;hb=dd3a4a211a4177eb986e1c9855c26e208ada9a42;hp=6bebc5d3f5b245455831d02eae6ddbb52400f0c8;hpb=4e7387191b490f70eca1a1ec5e201c1e691f8cc6;p=gnome.introspection-doc-generator diff --git a/docs.js b/docs.js index 6bebc5d..57d0a69 100644 --- a/docs.js +++ b/docs.js @@ -51,18 +51,19 @@ 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'), }); }); - +/* var cls_template = new Template(__script_path__ + '/templates/class.html'); var cls_ix_template = new Template(__script_path__ + '/templates/class_ix.html'); var reference_template = new Template(__script_path__ + '/templates/references.html'); - +*/ var ns_idx = []; @@ -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 + '/'+ ns_name + '.html', lang.cls_template.process(ns)); + + // left bar index of elements in namespace... + Gio.simple_write(outputdir + '/_ix_'+ ns_name + '.shtml', lang.cls_ix_template.process(ns)); + + }); var actions = {