X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FBuildDocs.js;h=3a6529b1bb5adc3f5775ebac3438995f84d3261b;hp=f3ff8ae53c6538101e55fb795a0e3e65a8b635c7;hb=a67931117fc1f532da5016752f7dd3c625ce25d3;hpb=7173d615d1ce40f191b80ccad544e38bf57252bb diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index f3ff8ae..3a6529b 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -137,7 +137,7 @@ BuildDocs = { var txs = new TextStream(src); - var tr = new TokenReader({ keepComments : true, keepWhite : true }); + var tr = new TokenReader({ keepComments : true, keepWhite : true , sepIdents: false }); var ts = new TokenStream(tr.tokenize(txs)); @@ -271,7 +271,7 @@ BuildDocs = { // dump out a - this.publishJSON(Options.target+"/json/", symbol.alias+'.json', symbol) + this.publishJSON(Options.target+"/json/" + symbol.alias+'.json', symbol) @@ -281,7 +281,7 @@ BuildDocs = { Link.base = ""; //var classesIndex = classesTemplate.process(classes); - + Options.LOG.inform("build index"); File.write(Options.target + "/index."+ Options.publishExt, classesindexTemplate.process(classes) @@ -307,12 +307,19 @@ BuildDocs = { } allFiles = allFiles.sort(makeSortby("name")); - File.write(Options.target , "/files."+Options.publishExt, + Options.LOG.inform("write files index"); + + File.write(Options.target + "/files."+Options.publishExt, fileindexTemplate.process(allFiles) ); }, - + /** + * JSON files are lookup files for the documentation + * - can be used by IDE's or AJAX based doc tools + * + * + */ publishJSON : function(file, data) { // what we need to output to be usefull...