Docs: Ignore HTML API internals from public documentation#11078
Docs: Ignore HTML API internals from public documentation#11078sirreal wants to merge 9 commits intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
westonruter
left a comment
There was a problem hiding this comment.
Does the docs generator not ignore @access private symbols?
No, it doesn't seem to.
(I also noticed that private methods may include confusing recommendations from |
9f6fafc to
8a7deb6
Compare
Add `@ignore` annotations to internal HTML API methods and classes to exclude them from generated documentation. The HTML API relies heavily on internal methods and classes and they create a lot of noise in documentation. Developed in #11078. Props jonsurrell, westonruter. See #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61793 602fd350-edb4-49c9-b593-d223f7449a82
|
Merged in r61793. |
Add `@ignore` annotations to internal HTML API methods and classes to exclude them from generated documentation. The HTML API relies heavily on internal methods and classes and they create a lot of noise in documentation. Developed in WordPress/wordpress-develop#11078. Props jonsurrell, westonruter. See #64224. Built from https://develop.svn.wordpress.org/trunk@61793 git-svn-id: http://core.svn.wordpress.org/trunk@61099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The HTML API relies on many private and internal methods and classes. All of theme appear in the public documentation. This introduces a lot of noise into the documentation that's irrelevant for anyone not working directly on the HTML API itself.
By adding ignore annotations to most of the internal and private methods and classes, the documentation will be much cleaner and more relevant.
See the HTML processor class methods page for example. None of these internal methods should be of interest to folks using the HTML API:
I have kept a few "internal" things documented, like the
WP_HTML_Text_ReplacementandWP_HTML_Spanwhich are often useful for subclasses working with bookmarks and replacements.wordpress-develop/src/wp-includes/html-api/class-wp-html-text-replacement.php
Lines 16 to 22 in 33ebdd7
wordpress-develop/src/wp-includes/html-api/class-wp-html-span.php
Lines 19 to 25 in 33ebdd7
Trac ticket:https://core.trac.wordpress.org/ticket/64224
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.