-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Flag @advanced
instead of @internal
#2264
Comments
Unfortunately, it is not clear from the commit or PR that dates back to 2019 why many methods were marked as internal. The methods themselves are missing from the documentation, but nevertheless used in several contexts. @bastianallgeier @distantnative Could you explain why this was done? |
Thanks. I did some digging myself as well and read that Another thought after reporting this was “since the hook callbacks are bound to the Kirby object, I could also use From my understanding, if a method is kinda excluded from the public API with this annotation, I shouldn’t rely on it for custom development. |
Exactly, that's what I meant. We filter them out of the docs, only to use them in several examples anyway, which is not really stringent. |
I think this is caused by losing track. We add @internal for two reasons:
There are methods that are simply too much for the object reference. They go too deep and would only be valuable on a very high level and with a lot of additional documentation and explanations. I think that extend is totally fine like that. I don't see us deprecating or removing this any time soon. But it's also not a method that you would normally need to use. I don't remember how it made it into the hook docs tbh. |
@bastianallgeier However, also methods like |
@texnixe I think it's sometimes just massively outdated. |
I wouldn't know how we could do this not in any arbitrary way. We have the competing goals of offering our user the best and most detailed information vs. not overwhelming our users (especially new ones) with a myriad of very technical methods - in the end they don't find the important basic ones amidst all those very advanced ones. I think any decision to draw a line - this is in, this is out - will be arbitrary. And will be wrong at times (or actually right, even if one user among hundreds was looking for it) with the need to revise them when we notice that our classification doesn't fit (anymore). I can't see how there could be an exact system of rules to decide. |
Maybe it could help to differentiate:
|
@lukasbestle I like that suggestion a lot. |
@lukasbestle Yes please, this would clarify a lot when digging deeper 😅 |
Guess this needs an issue in the kirby repo to change the doc blocks accordingly, then as a next step change our logic to show |
What do you think @distantnative? If you agree on the concept, could you work on the implementation as well? I think you have the best overview of our docs reflection logic. |
I'm fine with switching to |
@advanced
instead of @internal
Just stumbled over the example for the
system.loadPlugins:after
hook in the guide and wanted to dynamically register an extensions based on a config option in a plugin like suggested in the documentation.However, the
\Kirby\Cms\AppPlugins::extend
method mentioned in the example is marked as@internal
.Now I’m wondering if the guide or the DocBlock annotation is wrong here.
The text was updated successfully, but these errors were encountered: