JSDOC/BuildDocs.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 09:41:57 +0000 (17:41 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 09:41:57 +0000 (17:41 +0800)
JSDOC/BuildDocs.js

index 0b4e8c1..ff2a9a5 100644 (file)
@@ -231,7 +231,9 @@ BuildDocs = {
             print("write " + Options.target+"/symbols/" +symbol.alias+'.' + Options.publishExt);
             
             // dump out a 
-            File.write(Options.target+"/json/",  symbol.alias+'.json' , this.jsonRender(symbol));
+            
+            this.publishJSON(Options.target+"/json/",  symbol.alias+'.json', symbol)
+            
             
             
         }
@@ -273,7 +275,7 @@ BuildDocs = {
         fileindexTemplate = filesIndex = files = null;
     }
 
-    publishJSON = function(data)
+    publishJSON = function(file, data)
     {
         // what we need to output to be usefull...
         // a) props..
@@ -325,7 +327,7 @@ BuildDocs = {
             props : props,
             events: events
         };
-        return JSON.stringify(ret, null, 2 );
+        File.write(file, JSON.stringify(ret, null, 2 ));
         
         
         // b) methods