initial import
[roojs1] / buildSDK / docs_build.js
1 //<script type="text/javascript">
2
3 /**
4  * @version $Id: main.js 570 2008-04-07 23:54:50Z micmath $
5  * 
6  * 
7  * Usage:
8  * 
9  * - in the top level directory.
10  * roolite -L/path/to/rooscript/examples/jstoolkit buildSDK/docs_build.js
11  * 
12  * 
13  * 
14  * 
15  */
16
17
18  
19
20 include "lib/JSDOC.js";
21 //include "frame/Opt.js";
22
23
24 var cwd = File.getcwd();
25
26 if (!File.exists(cwd+'/Roo.js')) {
27     throw "needs to be run from the same directory as Roo.js";
28 }
29  
30         // configure it!!! -- see buildDocs.js in the rooscript/jstookit/exammples directory..
31     
32 JSDOC.build(
33     {
34         _ : [ "Roo.js", "Array.js", "Date.js" , "Function.js" , "Number.js", "String.js", "Roo" ],
35         // these are commented out for test builds
36         //_ : [          "Roo.js",  "Roo/Component.js", "Roo/util/Observable.js", "Roo/DatePicker.js", "Roo/data/Connection.js", "Roo/BasicLayoutRegion.js",
37         //    "Roo/form/Action.js" , "Roo/grid/GridEditor.js", "Roo/Editor.js"   ],
38         //_ : [   "Roo/form/BasicForm.js" ],
39         //_ : [          "Roo.js"],
40         t : cwd + "/buildSDK/doc_templates/", // fixme - I think we should move doc templates to here...
41         r : true,
42         d : cwd + '/docs/',
43         v : true,
44         
45         //C: true, // true = disable caching.
46         C: false, // true = disable caching.
47         
48         c: false,
49         x: false,
50         p: false,
51         a: false,
52         e: '',
53         n: false,
54         o: false,
55         s: false,
56         T: false,
57         h: false,
58         D: [],
59         H: [],
60          
61         usage : function()
62         {
63             throw "oops - something has gone wrong";
64         },
65         LOG : {
66             warn : function(str) {
67                 println("Warn: " +str );
68             },
69             inform : function(str) {
70                 println("Inform: " +str );
71             },
72             close : function() { },
73             flush : function() { },
74             out: false,
75             warnings : [],
76             verbose : false
77                 
78         }
79         
80     }
81 );