X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs.js;h=137247bd53385f4a041c232a932788e8da186492;hb=7255bf47550213e59c086e7728899638c8daac60;hp=df43e06d00c7333452259e393d0b174ba0235874;hpb=5b08ce822fa85f8e9b4f3578e991e7e897c234fe;p=gnome.introspection-doc-generator diff --git a/docs.js b/docs.js index df43e06..137247b 100644 --- a/docs.js +++ b/docs.js @@ -41,12 +41,13 @@ if (typeof(Seed.argv[3]) == 'string') { ns_list = Seed.argv[3].split(','); } + ns_list = ns_list.sort(); // let's try and load them, so we find out early what will fail. ns_list.forEach(function(ns_name) { var core = imports.gi[ns_name]; -} +}); // which languages do we want to output for. langs=[]; @@ -162,7 +163,7 @@ langs.forEach(function(lang) { continue; } - refs = langs.reference_template.process(NameSpace.references[i]); + refs = langs[lang].reference_template.process(NameSpace.references[i]); // HTML to put refs into html = File.read(html_file_path);