JSDOC/BuildDocs.js
[gnome.introspection-doc-generator] / JSDOC / BuildDocs.js
index a0e7e95..3a6529b 100644 (file)
@@ -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));
         
@@ -256,7 +256,7 @@ BuildDocs = {
             
        // var classesIndex = classesTemplate.process(classes); // kept in memory
         
-        
+        Options.LOG.inform("iterate classes");
         
         for (var i = 0, l = classes.length; i < l; i++) {
             var symbol = classes[i];
@@ -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)
             
             
             
@@ -279,9 +279,9 @@ BuildDocs = {
         
         // regenrate the index with different relative links
         Link.base = "";
-        var classesIndex = classesTemplate.process(classes);
+        //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...