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
README 2.x update proposal... take 2 #504
Conversation
added "comments" (TODO link references) for changes suggested but not yet implemented for future discussion/prs clarified "native stream" to be "native Node streams" adjusted all uses of http to https to encourage secure protocol usage adjusted whatwg to proper case, WHATWG made code block tags consistent as `js` instead of `javascript` uppercased all method option values (post vs POST) added spec-compliant node to the `response.ok` api section
Codecov Report
@@ Coverage Diff @@
## master #504 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 6 6
Lines 503 503
Branches 158 158
=====================================
Hits 503 503 Continue to review full report at Codecov.
|
Thx @jkantr, I gave this a quick read and it looks good to me. @jimmywarting @TimothyGu please give this a quick read when you can, I intend to merge it :) |
Actually one quick thing: Can you restructure this code block into a table (just like the default header table below). I always think people overlooks https://github.com/bitinn/node-fetch/blob/2d373bcb77af75876407fdee64fc572e3a08c11a/README.md#options |
@bitinn do you mean something like this? Tables are pretty awkward to work with in |
@jkantr yeah, I would move the fetch standard column into a header row, or simply have 2 tables. If you already got another solution in mind, make a gist, we will take a look. My problem is mainly with (1) the code block isn't great for quick scanning; (2) the explanation on non-standard options could be better. |
Colspan doesn't really work it seems (can't span the first col, only the ones after) in GFM so this was as close as I can get https://gist.github.com/jkantr/a8036d22b6aaec0626ae2340a1aaf1e2 It may be better just to stuff them in a table and explain each in its own |
Whichever you see fit, really, I don't have a strong preference on using tables, just the first thing that came to my mind. |
@jkantr @jimmywarting @TimothyGu hey guys, last call, I am going to merge this PR, as is, please give OP a thumb up if you feel this is ok. And stop me if you see anything straight up wrong. |
It was good. I didn't read carefully in the end just shimmed thought the rest. Will just say that all looks alright! |
The way we solve this problem with marked is to put the description and a simple getting started snippet in the README (this gets installed millions of times so we keep it small). The README has a link to GitHub pages which hosts the full documentation (stored in |
OK I am merging this, any issue we will fix in future PR |
A continuation of the changes and discussion in #448
This time without broken git history :)
The beginning of a general overhaul of docs to be easier to read, suggest best practices, fix some verbiage, and bring up to date with v2.x
Most suggestions from #448 have either been implemented or added as "comments" in the markdown (TODO 'links')