Closed Katrix closed 2 years ago
Replying to some points of your feedback:
[_ :> T]
construction and it's hard to disambiguate it.(source)
text. SerialVersionUID
Thanks for the links to updated instances. I've noticed that packages can't be expanded anymore. Is that a deliberate design decision?
Also some more notes on the sidebar that I just found. First off, you can scroll it horizontally.
Also, if you expand something so that the sidebar goes from not being scrollable, to being scrollable, then the arrows move. Would be best if they didn't. If it's hard to make them not move, then maybe just show the scroll bar at all times?
Type members:
Value members:
def map
for examplke, it would only show methods named map. - @pikinier20, I am not sure if you have resolved that one. If so, please fill the checkbox.Misc:
HKTypeLambdas
even if you have plain type T[X]
. I have recenlty merged bugfixes for typelambdas available here, but I think the whole concept should be discussed and rewritten, as for now we have mixed syntax. You can look at them hereSerialVersionUID
- the problem is, who would decide whether given annotation should be documented or not? Do we have to hardcode that list? Java and Kotlin has nice @MustBeDocumented
meta annotations, which their doctools have a use. It would be nice if Scala would also define one. For now, I think we need to document all annotations.@Katrix I tried to address all of your requests, some I checked as resolved, some are just explained why I could not provide solution for now. Please assess which one would you like to implement and provide more information, and for those that are not valid for now please checkbox them as resolved.
When the documentation is published via CI, the snapshot example should be available here https://scala3doc.virtuslab.com/pr-ux-fixes/index.html as a quick reference to above issues.
Can't check the checkboxes, but I can go over what you've written at least 😄
The first paragraph of the scaladoc of a class is smaller than the rest: Seems to have been fixed.
Ill formatted Option: Tested the given source on a completely different thing of mine which uses Flexmark, and it rendered fine. It's probably either a bug, or a configuration option. I can see if I have time to look into that.
Showing class Annotations: That sounds like a wonderful solution honestly
Scaladoc member grouping: The groups the old Scaladoc does, which is not done currently here are: constructors, concrete and abstract value members For abstract and concrete, see here how old Scaladoc does it compared to how it's done currently https://scala3doc.virtuslab.com/pr-master/scala3/api/scala/concurrent/Promise.html https://www.scala-lang.org/api/current/scala/concurrent/Promise.html
Should I open seperate issues for the remaining bigger items? Name of source file Documented annotations Page width
I'm working on part 2 of that issue.
abstract
by default if they don't provide implementation, it just adds Deferred
flag. I have written to @abgruszecki so he can bring some insight to that case.Current progress of issues
Scaladoc member grouping
fyi, I opened an issue about this with some suggestions a while ago: https://github.com/lampepfl/dotty/issues/10893
I think all issues listed in this task are already adressed so I close it.
Seeing as most of the things in the old issue were dealt with and the issue closed, I thought I'd go check out the state scala3doc and see what lesser things that could probably be fixed next. Hope you don't mind.
Type members:
Value members:
def map
for examplke, it would only show methods named map.Misc:
SerialVersionUID
Also, is there a live link to an instance of the scala3doc that shows off some stuff? The main one for Dotty doesn't expand packages, and the old ones from before this got merged in here are dead.