JSDOC/BuildDocs.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 06:32:00 +0000 (14:32 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 06:32:00 +0000 (14:32 +0800)
JSDOC/BuildDocs.js

index 5492b3e..36578fc 100644 (file)
@@ -37,67 +37,21 @@ BuildDocs = {
     
          
         
-       Options.LOG.inform("JsDoc Toolkit main() running at "+new Date()+".");
+        Options.LOG.inform("JsDoc Toolkit main() running at "+new Date()+".");
         Options.LOG.inform("With options: ");
-            for (var o in JSDOC.opt) {
-                JSDOC.opt.LOG.inform("    "+o+": "+JSDOC.opt[o]);
-            }
+        
+        //for (var o in JSDOC.opt) {
+        //        JSDOC.opt.LOG.inform("    "+o+": "+JSDOC.opt[o]);
+        //    }
             
-            var jsdoc = new JSDOC.JsDoc();
+          
             
-            if (JSDOC.opt.hasOwnProperty('Z')) { // secret debugging option
-                JSDOC.opt.LOG.warn("So you want to see the data structure, eh? This might hang if you have circular refs...");
-                //IO.include("frame/Dumper.js");
-                var symbols = jsdoc.symbolSet.toArray();
-                for (var i = 0, l = symbols.length; i < l; i++) {
-                    var symbol = symbols[i];
-                    print("// symbol: " + symbol.alias);
-                    print(symbol.serialize());
-                }
-            }
-            else {
-                var template = JSDOC.opt.t; // || System.getProperty("jsdoc.template.dir");
-                println("Template: " + JSDOC.opt.t);
-                
-                function includeJs(fn)
-                {
-                    return "include '" + fn +"';";
-                }
-                
-                eval(includeJs(template + 'publish.js'));
-                
-                JSDOC.publish = publish;
+             
+        var template = Options.template; // || System.getProperty("jsdoc.template.dir");
+        println("Template: " + Options.template);
                 
-                //var handler = jsdoc.symbolSet.handler;
-                //if (handler && handler.publish) {
-                //     handler.publish(jsdoc.symbolSet);
-                //}
-                //else {
-                    if (typeof(template) != "undefined") {
-                        // publish is in template!!    
-                        JSDOC.publish(jsdoc.symbolSet);
-                         
-                    }
-                    else {
-                        JSDOC.opt.LOG.warn("No template or handlers given. Might as well read the usage notes.");
-                        opt.usage();
-                    }
-                //}
-            }
-        }
-        
-        if (JSDOC.opt.LOG.warnings.length) {
-            print(JSDOC.opt.LOG.warnings.length+" warning"+(JSDOC.opt.LOG.warnings.length != 1? "s":"")+".");
-        }
-        
-        if (JSDOC.opt.LOG.out) {
-            JSDOC.opt.LOG.out.flush();
-            JSDOC.opt.LOG.out.close();
-        }
-        
-        
-        
         
+         
         
         
     },