docs: show descriptions of function listener arguments#2364
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2364 +/- ##
=======================================
Coverage 92.59% 92.59%
=======================================
Files 36 36
Lines 7472 7472
Branches 653 653
=======================================
Hits 6919 6919
Misses 545 545
Partials 8 8 ☔ View full report in Codecov by Sentry. |
zimeg
left a comment
There was a problem hiding this comment.
📝 Quick note on a confusion I had while making these changes!
docs/content/reference.md
Outdated
|
|
||
| | Argument | Description | | ||
| | :--- | :--- | | ||
| | Argument | Method | Description | |
There was a problem hiding this comment.
🤔 The language is a bit confusing here for me... I had "listener" at first, but the other sections describe this column as a "method".
I believe "method" is right after some thinking? As I understand, "listeners" are actually "listener functions" and these are the functions that are called for certain methods. I'd love to learn more nuance on this though!
There was a problem hiding this comment.
A sentense like "payload is available for all app.* listeners" makes sense to me, so I don't see issues with "Listener" here. Also, the last two rows actually have "All listeners" for the column. That said, "method" works too and it should be understood as well, so I don't have strong opinions on the naming, but personally I am down "Listener" here.
There was a problem hiding this comment.
Thanks! This is helpful and I'm glad to know both can make sense. I think that (and the use of "all listeners" below) was confusing me most 😉
I'll update this to "Listener" to avoid causing confusion within these tables!
seratch
left a comment
There was a problem hiding this comment.
Either "listener" or "method" works for me! but left comments on the topic
docs/content/reference.md
Outdated
|
|
||
| | Argument | Description | | ||
| | :--- | :--- | | ||
| | Argument | Method | Description | |
There was a problem hiding this comment.
A sentense like "payload is available for all app.* listeners" makes sense to me, so I don't see issues with "Listener" here. Also, the last two rows actually have "All listeners" for the column. That said, "method" works too and it should be understood as well, so I don't have strong opinions on the naming, but personally I am down "Listener" here.
|
|
||
| | 引数 | 説明 | | ||
| | :--- | :--- | | ||
| | 引数 | メソッド | 説明 | |
There was a problem hiding this comment.
if you go with "listener", it's "リスナー" in Japanese
|
@seratch Thank you for sharing reassurance in the method vs. listener mixup! And also for the review!! 🙏 ✨ Going to merge this now and see if I can watch that page change in real time 😳 |
|
if i wasn't already too late, i'd approve this! |
Summary
This PR adds another column to the "Listener function arguments" section of documentation to reveal a column hidden from the build! 📚 ✨
Preview
Before changes
After changes
Reviewers
Build these changes and inspect the following links:
Requirements