|
1 | 1 | Here's how the node docs work.
|
2 | 2 |
|
3 |
| -1:1 relationship from `lib/<module>.js` to `doc/api/<module>.md` |
| 3 | +1:1 relationship from `lib/<module>.js` to `doc/api/<module>.md`. |
4 | 4 |
|
5 | 5 | Each type of heading has a description block.
|
6 | 6 |
|
7 | 7 | ```md
|
8 |
| -## module |
9 |
| -<!-- YAML |
10 |
| -added: v0.10.0 |
11 |
| ---> |
| 8 | +# module |
| 9 | + |
| 10 | +<!--introduced_in=v0.10.0--> |
12 | 11 |
|
13 |
| -> Stability: 3 - Stable |
| 12 | +> Stability: 2 - Stable |
14 | 13 |
|
15 |
| -description and examples. |
| 14 | +A description and examples. |
16 | 15 |
|
17 |
| -### module.property |
| 16 | +## module.property |
18 | 17 | <!-- YAML
|
19 | 18 | added: v0.10.0
|
20 | 19 | -->
|
21 | 20 |
|
22 |
| -* Type |
| 21 | +* {type} |
23 | 22 |
|
24 |
| -description of the property. |
| 23 | +A description of the property. |
25 | 24 |
|
26 |
| -### module.someFunction(x, y, [z=100]) |
| 25 | +## module.someFunction(x, y, [z=100]) |
27 | 26 | <!-- YAML
|
28 | 27 | added: v0.10.0
|
29 | 28 | -->
|
30 | 29 |
|
31 |
| -* `x` {String} the description of the string |
32 |
| -* `y` {Boolean} Should I stay or should I go? |
33 |
| -* `z` {Number} How many zebras to bring. |
| 30 | +* `x` {string} The description of the string. |
| 31 | +* `y` {boolean} Should I stay or should I go? |
| 32 | +* `z` {number} How many zebras to bring. |
34 | 33 |
|
35 | 34 | A description of the function.
|
36 | 35 |
|
37 |
| -### module.someNewFunction(x) |
| 36 | +## module.someNewFunction(x) |
38 | 37 | <!-- YAML
|
39 | 38 | added: REPLACEME
|
40 | 39 | -->
|
41 | 40 |
|
42 |
| -* `x` {String} the description of the string |
| 41 | +* `x` {string} The description of the string. |
43 | 42 |
|
44 | 43 | This feature is not in a release yet.
|
45 | 44 |
|
46 |
| -### Event: 'blerg' |
| 45 | +## Event: 'blerg' |
47 | 46 | <!-- YAML
|
48 | 47 | added: v0.10.0
|
49 | 48 | -->
|
50 | 49 |
|
51 |
| -* Argument: SomeClass object. |
| 50 | +* `anArg` {type} A description of the listener argument. |
52 | 51 |
|
53 |
| -Modules don't usually raise events on themselves. `cluster` is the |
| 52 | +Modules don't usually raise events on themselves. `cluster` is the |
54 | 53 | only exception.
|
55 | 54 |
|
56 | 55 | ## Class: SomeClass
|
57 | 56 | <!-- YAML
|
58 | 57 | added: v0.10.0
|
59 | 58 | -->
|
60 | 59 |
|
61 |
| -description of the class. |
| 60 | +A description of the class. |
62 | 61 |
|
63 |
| -### Class Method: SomeClass.classMethod(anArg) |
| 62 | +### SomeClass.classMethod(anArg) |
64 | 63 | <!-- YAML
|
65 | 64 | added: v0.10.0
|
66 | 65 | -->
|
67 | 66 |
|
68 |
| -* `anArg` {Object} Just an argument |
69 |
| - * `field` {String} anArg can have this field. |
70 |
| - * `field2` {Boolean} Another field. Default: `false`. |
71 |
| -* Return: {Boolean} `true` if it worked. |
| 67 | +* `anArg` {Object} Just an argument. |
| 68 | + * `field` {string} `anArg` can have this field. |
| 69 | + * `field2` {boolean} Another field. Default: `false`. |
| 70 | +* Returns: {boolean} `true` if it worked. |
72 | 71 |
|
73 |
| -Description of the method for humans. |
| 72 | +A description of the method for humans. |
74 | 73 |
|
75 |
| -### someClass.nextSibling() |
| 74 | +### SomeClass.nextSibling() |
76 | 75 | <!-- YAML
|
77 | 76 | added: v0.10.0
|
78 | 77 | -->
|
79 | 78 |
|
80 |
| -* Return: {SomeClass object | null} The next someClass in line. |
| 79 | +* Returns: {SomeClass | null} The next `SomeClass` in line. |
81 | 80 |
|
82 |
| -### someClass.someProperty |
| 81 | +### SomeClass.someProperty |
83 | 82 | <!-- YAML
|
84 | 83 | added: v0.10.0
|
85 | 84 | -->
|
86 | 85 |
|
87 |
| -* String |
| 86 | +* {string} |
88 | 87 |
|
89 |
| -The indication of what someProperty is. |
| 88 | +The indication of what `someProperty` is. |
90 | 89 |
|
91 | 90 | ### Event: 'grelb'
|
92 | 91 | <!-- YAML
|
93 | 92 | added: v0.10.0
|
94 | 93 | -->
|
95 | 94 |
|
96 |
| -* `isBlerg` {Boolean} |
| 95 | +* `isBlerg` {boolean} |
97 | 96 |
|
98 |
| -This event is emitted on instances of SomeClass, not on the module itself. |
| 97 | +This event is emitted on instances of `SomeClass`, not on the module itself. |
99 | 98 | ```
|
100 | 99 |
|
101 | 100 |
|
102 |
| -* Classes have (description, Properties, Methods, Events) |
103 |
| -* Events have (list of arguments, description) |
104 |
| -* Functions have (list of arguments, description) |
105 |
| -* Methods have (list of arguments, description) |
106 |
| -* Modules have (description, Properties, Functions, Classes, Examples) |
107 |
| -* Properties have (type, description) |
| 101 | +* Classes have (description, Properties, Methods, Events). |
| 102 | +* Events have (list of arguments, description). |
| 103 | +* Functions have (list of arguments, description). |
| 104 | +* Methods have (list of arguments, description). |
| 105 | +* Modules have (description, Properties, Functions, Classes, Examples). |
| 106 | +* Properties have (type, description). |
0 commit comments