src/jsdoc/DocBuilder.vala
authorAlan Knowles <alan@roojs.com>
Thu, 10 Jan 2019 07:19:40 +0000 (15:19 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Jan 2019 07:19:40 +0000 (15:19 +0800)
src/jsdoc/DocBuilder.vala

index 171e652..3efcc1a 100644 (file)
@@ -268,40 +268,7 @@ namespace JSDOC
                
                        }                   
                    GLib.debug("Setting up templates");
-                   // used to check the details of things being linked to
-                   /*
-                   Link.symbolSet = this.symbolSet;// need to work out where 'symbolset will be stored/set!
-                   Link.base = "../";
-                   
-                   Link.srcFileFlatName = this.srcFileFlatName; // where set?
-                   Link.srcFileRelName = this.srcFileRelName; // where set?
-                   */
-                   //var classTemplate = new Template( PackerRun.opt_doc_template_dir  + "/class." + PackerRun.opt_doc_ext );
-                   //var classesTemplate = new Template( PackerRun.opt_doc_template_dir+"/allclasses." + PackerRun.opt_doc_ext  );
-                   //var classesindexTemplate = new Template( PackerRun.opt_doc_template_dir +"/index."  + PackerRun.opt_doc_ext );
-                   //var fileindexTemplate = new Template( PackerRun.opt_doc_template_dir +"/allfiles."+ PackerRun.opt_doc_ext );
-
-                   
-                   //classTemplate.symbolSet = this.symbolSet; // where?
-                   
-                   /*
-                   function hasNoParent($) {
-                       return ($.memberOf == "")
-                   }
-                   function isaFile($) {
-                       return ($.is("FILE"))
-                   }
-                   function isaClass($) {
-                       return ($.is("CONSTRUCTOR") || $.isNamespace || $.isClass); 
-                   }
-                   */
-                   
-                   
-                   
-                   
-                   
-                   
-                   
+                    
                    
                    
                    var symbols = this.symbolSet.values();
@@ -341,13 +308,11 @@ namespace JSDOC
                        
                        
                        
-                       /*
                        FileUtils.set_contents(
-                                               PackerRun.singleton().opt_doc_target+"/symbols/" +symbol.alias+"." +
-                                                        PackerRun.singleton().opt_doc_ext ,
-                               classTemplate.process(symbol)
+                                               PackerRun.singleton().opt_doc_target+"/symbols/" +symbol.alias+".json",
+                               this.class_to_json(symbol)
                        );
-                       */
+                       
                        jsonAll.set_object_member(symbol.alias,  this.publishJSON(symbol));
 
                    }