History

update examples comments to 1.5.0.0

Ge Wang committed 3 years ago

Commit 221397f1 parent c0bf4b727 files · +77 −36Browse files

Showing the changes to src/scripts (1 of 27 files). Show all

Unified · Split

src/scripts/ckdoc/gen-all.ck+28−5
@@ -1,4 +1,15 @@
1−// instantiate
1+//---------------------------------------------------------------------
2+// name: gen-all.ck
3+// desc: generate HTML documentation for chuck website reference
4+// see: https://chuck.stanford.edu/doc/reference/
5+//
6+// version: need chuck version 1.5.0.0 or higher
7+//
8+// author: Ge Wang (https://ccrma.stanford.edu/~ge/)
9+// date: Spring 2023
10+//---------------------------------------------------------------------
11+
12+// instantiate a CKDoc object
213 CKDoc doc; // documentation orchestra
314 // set the examples root
415 "../examples/" => doc.examplesRoot;
@@ -6,9 +17,9 @@ CKDoc doc; // documentation orchestra · 1 unmodified line
617 // add group
718 doc.addGroup(
819 // class names
9− ["Object", "Event", "Shred", "Math", "Machine", "Std", "string", "@array"],
20+ ["Object", "Event", "Shred", "Math", "Machine", "Std", "string", "@array", "CKDoc" ],
1021 // group name
11− "Base Libraries",
22+ "Base Classes",
1223 // file name
1324 "base",
1425 // group description
@@ -124,8 +135,20 @@ doc.addGroup( · 109 unmodified lines
124135 "Communication tools, including file input/output, Open Sound Control, MIDI, MIDI file reading, serial i/o."
125136 );
126137
138+// add group
139+doc.addGroup(
140+ // class names
141+ [ "CKDoc", "StringTokenizer", "ConsoleInput" ],
142+ // group name
143+ "Utilities",
144+ // file name
145+ "utils",
146+ // group description
147+ "Additional Utiilities"
148+);
149+
127150 // generate
128151 doc.outputToDir( ".", "ChucK Class Library Reference" );
129152
130−// print what was generated (or add option to)
131−// print what types are in the type system but wasn't documented
153+// TODO: print what was generated (or add option to)
154+// TODO: print what types are in the type system but wasn't documented

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t