Skip to content

Commit 6edf952

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: fix nits in tools/doc/README.md
* Sync format schemes with the current doc state. * Lowercase primitive types. * Fix typos and unify the style. * Remove tautological info. PR-URL: #18874 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 7624686 commit 6edf952

File tree

1 file changed

+38
-39
lines changed

1 file changed

+38
-39
lines changed

tools/doc/README.md

+38-39
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,106 @@
11
Here's how the node docs work.
22

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`.
44

55
Each type of heading has a description block.
66

77
```md
8-
## module
9-
<!-- YAML
10-
added: v0.10.0
11-
-->
8+
# module
9+
10+
<!--introduced_in=v0.10.0-->
1211

13-
> Stability: 3 - Stable
12+
> Stability: 2 - Stable
1413

15-
description and examples.
14+
A description and examples.
1615

17-
### module.property
16+
## module.property
1817
<!-- YAML
1918
added: v0.10.0
2019
-->
2120

22-
* Type
21+
* {type}
2322

24-
description of the property.
23+
A description of the property.
2524

26-
### module.someFunction(x, y, [z=100])
25+
## module.someFunction(x, y, [z=100])
2726
<!-- YAML
2827
added: v0.10.0
2928
-->
3029

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.
3433

3534
A description of the function.
3635

37-
### module.someNewFunction(x)
36+
## module.someNewFunction(x)
3837
<!-- YAML
3938
added: REPLACEME
4039
-->
4140

42-
* `x` {String} the description of the string
41+
* `x` {string} The description of the string.
4342

4443
This feature is not in a release yet.
4544

46-
### Event: 'blerg'
45+
## Event: 'blerg'
4746
<!-- YAML
4847
added: v0.10.0
4948
-->
5049

51-
* Argument: SomeClass object.
50+
* `anArg` {type} A description of the listener argument.
5251

53-
Modules don't usually raise events on themselves. `cluster` is the
52+
Modules don't usually raise events on themselves. `cluster` is the
5453
only exception.
5554

5655
## Class: SomeClass
5756
<!-- YAML
5857
added: v0.10.0
5958
-->
6059

61-
description of the class.
60+
A description of the class.
6261

63-
### Class Method: SomeClass.classMethod(anArg)
62+
### SomeClass.classMethod(anArg)
6463
<!-- YAML
6564
added: v0.10.0
6665
-->
6766

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.
7271

73-
Description of the method for humans.
72+
A description of the method for humans.
7473

75-
### someClass.nextSibling()
74+
### SomeClass.nextSibling()
7675
<!-- YAML
7776
added: v0.10.0
7877
-->
7978

80-
* Return: {SomeClass object | null} The next someClass in line.
79+
* Returns: {SomeClass | null} The next `SomeClass` in line.
8180

82-
### someClass.someProperty
81+
### SomeClass.someProperty
8382
<!-- YAML
8483
added: v0.10.0
8584
-->
8685

87-
* String
86+
* {string}
8887

89-
The indication of what someProperty is.
88+
The indication of what `someProperty` is.
9089

9190
### Event: 'grelb'
9291
<!-- YAML
9392
added: v0.10.0
9493
-->
9594

96-
* `isBlerg` {Boolean}
95+
* `isBlerg` {boolean}
9796

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.
9998
```
10099

101100

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

Comments
 (0)