-
Notifications
You must be signed in to change notification settings - Fork 409
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
Option to de-emphasize some opt-in symbols #3924
Comments
Here is an example of a page where this would be useful: https://opensavvy.gitlab.io/ktmongo/api-docs/dsl/opensavvy.ktmongo.dsl.options/-count-options/index.html Here, 90% of users are only interested in the Since IntelliJ already de-emphasizes these methods (they are ranked lower in auto-complete), it would be nice if Dokka did the same. However, I don't have strong opinions on how to do so. A possible idea: whenever they are opt-in symbols, they should be at the end of their respective section. Thus, on that page, the order of properties would be:
|
Been thinking a bit more about this and I'm not sure I see a simple way to achieve this. I've been toying a bit with saturation but it looks a bit odd IMO: Putting opt-in symbols at the end of the list is also slightly unsatisfying IMO as it breaks the common expectation of lexicographical order. FWIW, I favour exhaustivity vs abstract beauty in KDoc. I don't mind that much if the docs are not "nice" (think javadoc 🙃 ) as long as the information I need is there and easy to access. It's not like i'm going to browse KDoc to learn about a lib. So I'd say it's ok to have too much information (compared to not enough). Until we figure out a good visual hint there, I think I'd be ok with just the filters for starters. Links from user guides could include the query param to filter them out by default ( |
See #1862 and #3922.
In addition to being able to filter out some opt-in symbols (
@ExperimentalApi
,@DelicatedApi
, and the likes), it would be useful to have some visual clue that they are "low priority".Maybe a badge or grey them out or thinner font, I'm not 100% sure but opening this for tracking.
The text was updated successfully, but these errors were encountered: