| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Needs a few cleanups
Sorry, something went wrong.
There was a problem hiding this comment.
Nit: line wrap at 80 chars please :-)
Sorry, something went wrong.
There was a problem hiding this comment.
If we go with this approach, it would be best to make crypto.getHashes() a link to the right location.
Sorry, something went wrong.
There was a problem hiding this comment.
Will get on this, thanks for the feedback
Sorry, something went wrong.
There was a problem hiding this comment.
Using reference makes it sound like you should refer to the documentation for crypto.getHashes() but what is really meant is to run it to obtain the array of available algorithms, right? If so, instead of this:
For available signing algorithms, please reference crypto.getHashes().
...I'd prefer something like:
Use [crypto.getHashes()][] to obtain an array of names of the available signing algorithms.
Sorry, something went wrong.
There was a problem hiding this comment.
@jasnell for linking to crypto.getHashes() would you reccomend putting a <a id="getHashes"></a> above crypto.getHashes() in the markdown, or do you have another preferred method?
Thanks
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
There was a problem hiding this comment.
@sstern6 Some more info: That linking style is used throughout the doc and all (or nearly all) our other API docs. You can read about it at https://daringfireball.net/projects/markdown/syntax#link if you search for implicit link name shortcut.
Sorry, something went wrong.
There was a problem hiding this comment.
thanks @Trott getting to that now. The link is already declared at the bottom of the page.
Updating the PR with all of the comments
Sorry, something went wrong.
There was a problem hiding this comment.
The added text is a sentence fragment (which is fine for the first "sentence", but subsequent statements should be complete sentences). It seems unnecessary anyway. If we do want to include the example, I'd prefer:
Returns an array with the names of the supported hash algorithms, such as RSA-SHA256.
Sorry, something went wrong.
There was a problem hiding this comment.
Using reference makes it sound like you should refer to the documentation for crypto.getHashes() but what is really meant is to run it to obtain the array of available algorithms, right? If so, instead of this:
For available signing algorithms, please reference crypto.getHashes().
...I'd prefer something like:
Use [crypto.getHashes()][] to obtain an array of names of the available signing algorithms.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with nits addressed.
Sorry, something went wrong.
|
@sstern6 can you please adjust the commit message to make it follow the guidelines? Thank you. |
Sorry, something went wrong.
|
Thanks everyone, will have all of these addressed by end of day. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
Micro-nit: array with the names -> array of the names
Sorry, something went wrong.
There was a problem hiding this comment.
@Trott updated
Sorry, something went wrong.
|
@Trott will have the micronit fixed by 4:30pst today. Thanks |
Sorry, something went wrong.
PR-URL: #9043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #9043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #9043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #9043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
Docs.
Description of change
Fixes Issue: #9005.
Update crypto docs by removing inaccurate command explanation from crypto.createSign(algorithm) and crypto.createVerify(algorithm),
accurately referencing how to get available hash algorithms from crypto.getHashes().