Skip to content
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

Certain docs have very little information provided per API #11135

Closed
sagiavinash opened this issue Feb 3, 2017 · 21 comments
Closed

Certain docs have very little information provided per API #11135

sagiavinash opened this issue Feb 3, 2017 · 21 comments
Labels
doc Issues and PRs related to the documentations. good first issue Issues that are suitable for first-time contributors. help wanted Issues that need assistance from volunteers or PRs that need help to proceed.

Comments

@sagiavinash
Copy link

sagiavinash commented Feb 3, 2017

Firstly this is not a rant. I just want to know if its a community decision to have docs this way or there is opportunity for me to contribute to make documentation better.

I am a new to nodejs and i find the nodejs.org/.../docs are very less informative compared to any other big OSS platforms.

for example fs.close api doc is very vague for me.

  • Its just listing the arguments fd and callback.
  • It would be great to know if the callback has arguments and their details.
  • I would want to have an example associated with it.

Can you share thoughts on this perspective, is there any ongoing effort in this area?

@sagiavinash sagiavinash changed the title [Documention][want_to_constribute] docs have very less information provided per API [Documention][want_to_contribute] docs have very less information provided per API Feb 3, 2017
@joyeecheung joyeecheung added the doc Issues and PRs related to the documentations. label Feb 3, 2017
@joyeecheung
Copy link
Member

I'm definitely +1 on being clearer about the arguments of callbacks. Not just fs though, other callback-heavy APIs like dns, http, etc. all lacks descriptions of callback somewhere, at least a link to a explanation of the convention would be more helpful for people who just cmd+f/ctrl+f across the documentation.

FWIW looks like child_process has a clearer format for explaining these, members of options and arguments of callback are placed in sublists(though I'm not quite sure if putting arguments the same way as object members would be confusing, probably need a little bit more visual hint).

@TimothyGu TimothyGu changed the title [Documention][want_to_contribute] docs have very less information provided per API Certain docs have very little information provided per API Feb 3, 2017
@addaleax
Copy link
Member

addaleax commented Feb 3, 2017

I just want to know if its a community decision to have docs this way or there is opportunity for me to contribute to make documentation better.

You can find the current source files for the documentation at https://github.com/nodejs/node/blob/master/doc/, and if you want to help improve it, that would be hugely valued! ❤️

The most direct way to do that would be opening pull requests with suggested changes yourself. If you are interested in that, there’s a bit of information on getting started with that at http://nodetodo.org/getting-started/ (you can skip the “build Node” and “ask for a task” parts). We’re also glad to help you here or in the IRC channel listed in our README if you have any questions about this!

You can also open issues like these and ask for clarification, if you prefer.

Firstly this is not a rant.

It doesn’t read like a rant anyway. :)

@Fishrock123 Fishrock123 added the help wanted Issues that need assistance from volunteers or PRs that need help to proceed. label Feb 3, 2017
@joyeecheung joyeecheung added the good first issue Issues that are suitable for first-time contributors. label Feb 4, 2017
@jobala
Copy link

jobala commented Feb 25, 2017

@joyeecheung @Fishrock123 I would like to give this issue a shot.

@raphaelokon
Copy link
Contributor

Any news on that? Otherwise I could pick it up …

@sam-github
Copy link
Contributor

check out current PRs to make sure you aren't duplicating any work, but I don't think you are. go for it.

@jobala
Copy link

jobala commented Mar 29, 2017

@raphaelokon

You can pick it up, I have been swamped with work.

Apologies for not updating you guys.

@raphaelokon
Copy link
Contributor

Cheers. I will start with the fs doc work. Do we need separate issues for those chunk of work or are you cool with it to create a todo list right here?

@gibfahn
Copy link
Member

gibfahn commented Mar 31, 2017

TODO list here should be fine.

@raphaelokon
Copy link
Contributor

raphaelokon commented Mar 31, 2017

Following docs need better param descriptions:

fs (doc/api/fs.md)

  • fs.access(path[, mode], callback)
  • fs.accessSync(path[, mode])
  • fs.appendFile(file, data[, options], callback)
  • fs.appendFileSync(file, data[, options])
  • fs.chmod(path, mode, callback)
  • fs.chmodSync(path, mode)
  • fs.chown(path, uid, gid, callback)
  • fs.chownSync(path, uid, gid)
  • fs.close(fd, callback)
  • fs.closeSync(fd)
  • fs.createReadStream(path[, options])
  • fs.existsSync(path)
  • fs.fchmod(fd, mode, callback)
  • fs.fchmodSync(fd, mode)
  • fs.fchown(fd, uid, gid, callback)
  • fs.fchownSync(fd, uid, gid)
  • fs.fdatasync(fd, callback)
  • fs.fdatasyncSync(fd)
  • fs.fstat(fd, callback)
  • fs.fstatSync(fd)
  • fs.fsync(fd, callback)
  • fs.fsyncSync(fd)
  • fs.ftruncate(fd, len, callback)
  • fs.ftruncateSync(fd, len)
  • fs.futimes(fd, atime, mtime, callback)
  • fs.futimesSync(fd, atime, mtime)
  • fs.lchmod(path, mode, callback)
  • fs.lchmodSync(path, mode)
  • fs.lchown(path, uid, gid, callback)
  • fs.lchownSync(path, uid, gid)
  • fs.link(existingPath, newPath, callback)
  • fs.linkSync(existingPath, newPath)
  • fs.lstat(path, callback)
  • fs.lstatSync(path)
  • fs.mkdir(path[, mode], callback)
  • fs.mkdirSync(path[, mode])
  • fs.mkdtemp(prefix[, options], callback)
  • fs.mkdtempSync(prefix[, options])
  • fs.open(path, flags[, mode], callback)
  • fs.openSync(path, flags[, mode])
  • fs.read(fd, buffer, offset, length, position, callback) (the parameter descriptions should be written in the parameter list instead)
  • fs.readdir(path[, options], callback)
  • fs.readdirSync(path[, options])
  • fs.readlink(path[, options], callback)
  • fs.readlinkSync(path[, options])
  • fs.readSync(fd, buffer, offset, length, position)
  • fs.rename(oldPath, newPath, callback)
  • fs.renameSync(oldPath, newPath)
  • fs.rmdir(path, callback)
  • fs.rmdirSync(path)
  • fs.stat(path, callback)
  • fs.truncate(path, len, callback)
  • fs.truncateSync(path, len)
  • fs.unlink(path, callback)
  • fs.unlinkSync(path)
  • fs.utimes(path, atime, mtime, callback)
  • fs.utimesSync(path, atime, mtime)

@addaleax
Copy link
Member

Maybe /cc @ameliavoncat ?

@ameliavoncat
Copy link
Contributor

Are you still working on this? 😃

@raphaelokon
Copy link
Contributor

raphaelokon commented Apr 11, 2017

Hi @ameliavoncat – yeah, I was ill but am back on it.

Just completing Completed the TODO list 🙃

Now on actually targeting the single items.

@matejkrajcovic
Copy link
Contributor

@raphaelokon Hi! Do you work on this? Don't you mind if I start with a few functions?

@raphaelokon
Copy link
Contributor

@matejkrajcovic Go for it :-)

matejkrajcovic added a commit to matejkrajcovic/node that referenced this issue Jun 18, 2017
tniessen pushed a commit that referenced this issue Jul 2, 2017
PR-URL: #13767
Refs: #11135
Refs: #13769
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
addaleax pushed a commit to addaleax/node that referenced this issue Jul 3, 2017
PR-URL: nodejs#13767
Refs: nodejs#11135
Refs: nodejs#13769
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
addaleax pushed a commit that referenced this issue Jul 11, 2017
PR-URL: #13767
Refs: #11135
Refs: #13769
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
addaleax pushed a commit that referenced this issue Jul 18, 2017
PR-URL: #13767
Refs: #11135
Refs: #13769
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Fishrock123 pushed a commit that referenced this issue Jul 19, 2017
PR-URL: #13767
Refs: #11135
Refs: #13769
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
MylesBorins pushed a commit that referenced this issue Sep 29, 2017
PR-URL: #13424
Refs: #11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
addaleax pushed a commit to addaleax/ayo that referenced this issue Sep 30, 2017
PR-URL: nodejs/node#13424
Refs: nodejs/node#11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this issue Oct 3, 2017
PR-URL: #13424
Refs: #11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this issue Oct 3, 2017
PR-URL: #13424
Refs: #11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
matejkrajcovic added a commit to matejkrajcovic/node that referenced this issue Oct 18, 2017
PR-URL: nodejs#13424
Refs: nodejs#11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this issue Oct 19, 2017
Backport-PR-URL: #16306
PR-URL: #13424
Refs: #11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this issue Oct 25, 2017
Backport-PR-URL: #16306
PR-URL: #13424
Refs: #11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this issue Oct 26, 2017
Backport-PR-URL: #16306
PR-URL: #13424
Refs: #11135
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@mstallmo
Copy link

mstallmo commented Feb 8, 2018

Is there any work left to be done on this? I would love to lend a hand if I can!

@juggernaut451
Copy link
Contributor

juggernaut451 commented Feb 9, 2018

@MylesBorins would like to help in this if something is left

mmarchini pushed a commit that referenced this issue Feb 20, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
MylesBorins pushed a commit that referenced this issue Feb 21, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
MylesBorins pushed a commit that referenced this issue Feb 21, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
MylesBorins pushed a commit that referenced this issue Feb 21, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
vsemozhetbyt pushed a commit that referenced this issue Mar 15, 2018
PR-URL: #19361
Refs: #11135
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
@apapirovski
Copy link
Member

As far as I can tell, all the fs function signatures have been updated. Beyond that, this is a bit vague and hard to act on for anyone stumbling upon the issue. As such I'm going to close this out. If anyone still thinks docs are lacking, feel free to open a new issue with specific examples so we can get the community to help us out.

MayaLekova pushed a commit to MayaLekova/node that referenced this issue May 8, 2018
Refs: nodejs#11135

PR-URL: nodejs#18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
MylesBorins pushed a commit that referenced this issue Aug 7, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
MylesBorins pushed a commit that referenced this issue Aug 7, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
MylesBorins pushed a commit that referenced this issue Aug 9, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
MylesBorins pushed a commit that referenced this issue Aug 16, 2018
Refs: #11135

PR-URL: #18843
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. good first issue Issues that are suitable for first-time contributors. help wanted Issues that need assistance from volunteers or PRs that need help to proceed.
Projects
None yet
Development

No branches or pull requests