Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2bec889

Browse filesBrowse 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 <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 9589955 commit 2bec889
Copy full SHA for 2bec889

File tree

Expand file treeCollapse file tree

1 file changed

+38
-39
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+38
-39
lines changed
Open diff view settings
Collapse file

‎tools/doc/README.md‎

Copy file name to clipboard
+38-39Lines changed: 38 additions & 39 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.