-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Marking internal action as @ignore to remove them from the documentation. #42163
Conversation
Size Change: -10 B (0%) Total Size: 1.26 MB
ℹ️ View Unchanged
|
Should we follow with WordPress core and use |
@@ -90,58 +90,6 @@ _Returns_ | |||
|
|||
- `Object`: Action object. | |||
|
|||
### receiveAutosaves |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we print the same content in @wordpress/core-data
's README file. Should we link to the reference gude instead?
Now that #42198 has been merged, we can use |
@youknowriad @adamziel @Mamaduka @mtias I'd love any input you may have on this. |
The change makes sense to me. The internal actions aren't beneficial if you're not working on the core. |
I like the direction. We should stop promoting code that can be expressed in a more general way today. It would be great to leave a not in JSDoc explaining why it's ignored, so it's clear that usage of those functions is discouraged. |
That's a great idea. Maybe we can do something like - |
Looks like the linter won't allow this, I get the following when trying to commit.
Seems we'd need to make a change to https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/configs/jsdoc.js#L128 to allow that. Personally, I really this the idea of having the reason in line with the tag so I'll add that change to this PR. |
Based on a conversation in Slack with @gziolo , it looks like core always has the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
What?
This PR marks internal actions that are not meant to be accessed outside of this store as
@ignore
to remove them from the related docs.Why?
Having these items in the docs just adds noise to the documentation and has no real value. There is a larger conversation around how these are marked but backed on the JSDoc tags in the documentation standards this should be the correct tag to use.