-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: make markdown input compliant #21780
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
We have some md lint issues: https://travis-ci.com/nodejs/node/jobs/134224344 |
@rubys FYI, on non-Windows, you can install the markdown linter with |
(And if you're on Windows, it should work with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the comments addressed :)
doc/api/stream.md
Outdated
</table> | ||
| Use-case | Class | Method(s) to implement | | ||
| -------- | ----- | ---------------------- | | ||
| Reading only |[`Readable`](#stream_class_stream_readable) |[_read][stream-_read]</code> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The </code>
part should likely have a beginning?
doc/api/stream.md
Outdated
| Use-case | Class | Method(s) to implement | | ||
| -------- | ----- | ---------------------- | | ||
| Reading only |[`Readable`](#stream_class_stream_readable) |[_read][stream-_read]</code> | | ||
|Writing only |[`Writable`](#stream_class_stream_writable) | <code>[_write][stream-_write]</code>, <code>[_writev][stream-_writev]</code>, <code>[_final][stream-_final]</code> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: a whitespace at the beginning of each part would be nice.
* `false`: causes a new `Agent` with default values to be used. | ||
* `undefined` (default): use [`http.globalAgent`][] for this host and port. | ||
* `Agent` object: explicitly use the passed in `Agent`. | ||
* `false`: causes a new `Agent` with default values to be used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this (proper padding) be enforced by remark-lint?
doc/api/stream.md
Outdated
</table> | ||
| Use-case | Class | Method(s) to implement | | ||
| -------- | ----- | ---------------------- | | ||
| Reading only | [`Readable`](#stream_class_stream_readable) | <code>[_read][stream-_read]</code> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not [`Readable`][]
, [`Writable`][]
, [`Duplex`][]
, [`Transform`][]
? That should make lines shorter.
Side note: there could be a test for that, i.e. to avoid redeclaring already declared refs.
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
PR-URL: #21780 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Landed in 6a99e3e |
PR-URL: #21780 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes