| 1 |
// instantiate |
| 2 |
CKDoc doc; // documentation orchestra |
| 3 |
// set the examples root |
| 4 |
"https://chuck.stanford.edu/doc/examples/" => doc.examplesRoot; |
| 5 |
|
| 6 |
// get types currently in ChucK type system |
| 7 |
Type.getTypes( Type.OBJECT, Type.BUILTIN ) @=> Type types[]; |
| 8 |
// add as group |
| 9 |
doc.addGroup( types, "Base Types (compiled in)", "base", "Base types in the ChucK" ); |
| 10 |
|
| 11 |
// clear |
| 12 |
types.clear(); |
| 13 |
|
| 14 |
// get types currently in ChucK type system |
| 15 |
Type.getTypes( Type.OBJECT, Type.CHUGIN ) @=> types; |
| 16 |
// add as group |
| 17 |
doc.addGroup( types, "Base Types (chugins)", "chugins", |
| 18 |
"ChucK Objects loaded from chugins" ); |
| 19 |
|
| 20 |
// generate |
| 21 |
doc.outputToDir( ".", "ChucK Class Library Reference" ); |