From: Alan Knowles Date: Fri, 26 Aug 2011 03:24:55 +0000 (+0800) Subject: docs.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=3d2a554688bf0482e3ea8af84f642d36497ab100 docs.js --- diff --git a/docs.js b/docs.js index 587d35b..caa9778 100644 --- a/docs.js +++ b/docs.js @@ -111,13 +111,18 @@ ns_list.forEach(function(ns_name) if (File.exists(ns.gir_file)) { File.copyFile(ns.gir_file, outputdir + '/'+ ns.gir_filename, Gio.FileCopyFlags.OVERWRITE); } - + langs.forEach(function(lang) { ns['left_bar'] = lang.cls_ix_template.process(ns); // namespace template + + if (File.exists(outputdir + '/'+ lang.name+)) { + File.mkdir(outputdir + '/'+ lang.name+ ); + } + Gio.simple_write(outputdir + '/'+ lang.name+ '/' +ns_name + '.html', lang.cls_template.process(ns)); // left bar index of elements in namespace...