Add nodoc filter to doc type methods#14910
Add nodoc filter to doc type methods#14910straight-shoota merged 7 commits intocrystal-lang:masterfrom
Conversation
|
I suppose it could be up for debate whether undocumented types should be entirely invisible. But there could be some value in at least mentioning their existence in some places? So alternatively we could continue with the approach in #14878, just using |
Hm, I guess. And the inherited methods for undocumented types too, I suppose?
Maybe some conditions in |
Oh, that's a tricky one. Maybe this is all fine then. Nodoc ancestors are supposed to be hidden and don't need to be mentioned anywhere in the API docs... 🤷 |
This reverts commit 791b0e4.

The doc generator is creating links to non-documented type. I tried to fix this in #14878, but it turned that it removed links to documented non-top-level types.
Instead, filters will now be applied in
Doc::Type#ancestors,Doc::Type#included_modulesandDoc::Type#extended_modulesinstead as it was already done inDoc::Type#subclasses.Some specs to verify correct(?) behavior has been added.
Example of File.html.
Before:
After:
Fixes #9816, #12018