-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
docs: clarify man(N) references #4375
Comments
Some docs mention these functions like e.g. |
These refer to These have been left like this because they very by platform slightly. However, it is confusing and we should link to some online reference, or even material explaining what they are. This has come up in the past but I'm not sure there is an issue for it. |
Ah, I see. Thanks for clarifying! Yes, to me as a Windows programmer these look rather alien. |
Yes, I agree we need more documentation on fs. It's hard for people without a unix background to understand. I think we should add a usage example for each one and link to the pages on http://linux.die.net/ for the references. I can work on the PR over the weekend if that sounds reasonable to you @Fishrock123 . |
I think @ashleygwilliams has a tool for this? I mentioned it to her a while back. The trick would be putting it into our markdown-a-majig. |
The other problem with linking to linux man pages, is they only apply a bit if you run node on other unixen, and only a vague outline of what the Windows equivalent is. Personally, I prefer linking them ALL to a single page, that describes how to do Or we could just link to https://en.wikipedia.org/wiki/Advanced_Programming_in_the_Unix_Environment |
On Windows the relevant OS API functions are called entirely different. I tend to believe that references to a particular operating system's API or API help are no appropriate way of describing functionality if Node is supposed to be targeted to other operating systems, too. |
Think I found all of them:
|
If you want I can link these to the corresponding pages on man7.org and freebsd.org, for example http://man7.org/linux/man-pages/man2/open.2.html |
Many of these are platform specific. For example, the docs for |
For our docs that shouldn't be too bad, although you are right. Unices documentation and APIs are open source, very transparent and match a lot of the POSIX API. Windows system programming is the total opposite, but will eventually also match POSIX or if you know it you can easily adapt he concepts. It being sort of the standard to start system programming with Unices the interested user will be able to tell the difference. The world is just too complex to describe it correctly in an API two-liner. Also the way I read |
this has been addressed in master and v5 |
Brilliant 👏 |
Reading the documentation I noticed a fair number of strange looking references:
It looks as if these are supposed to be hyperlinks. But instead they are being displayed as only some name with a confusing number.
The text was updated successfully, but these errors were encountered: