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

index 9fb0572..a7858e6 100644 (file)
@@ -173,7 +173,9 @@ BuildDocs = {
         File.list(Options.templatesDir + '/static').forEach(function (f) {
             File.copy(Options.templatesDir + '/static/' + f, Options.target + '/' + f);
         });
-        
+        if (!File.isDirectory(Options.target +"/json")) {
+            File.makeDir(Options.target +"/json");
+        }
         
         // used to check the details of things being linked to
         Link.symbolSet = symbolSet;
@@ -214,9 +216,10 @@ BuildDocs = {
         var classes = symbols.filter(isaClass).sort(makeSortby("alias"));
         
         Link.base = "../";
+        
         publish.classesIndex = classesTemplate.process(classes); // kept in memory
         
-        IO.makeDir(publish.conf.outDir+"json");
+        
         
         for (var i = 0, l = classes.length; i < l; i++) {
             var symbol = classes[i];