Skip to content

Scala3doc UI and UX improvements #11136

@Katrix

Description

@Katrix

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:

  • Very low contrast on the extends part
  • When clicking on a type member, the box the member is inside briefly expands before navigating off the page

Value members:

  • Types have very low contrast
  • Scaladoc groups value members into a few groups. The ones I found just looking around are: Constructors, abstract value members, concrete value members, deprecated value members. There are probably more. Scala3doc does some grouping, but would love some more here.
  • Sort value members
  • Filtering the value members is kind of limited currently, as it also looks at the documentation for the method. Scaladoc also does this, but I'd love if just like the global search, if you searched for def map for examplke, it would only show methods named map.

Misc:

  • Scala3doc is adding unneeded and confusing type lambdas to type signatures
  • The first paragraph of the scaladoc of a class is smaller than the rest.
  • Some ": " values at the top of classes feels kind of unnatural at the moment. "Source: (source)" doesn't tell me that much. Scaladoc adds the name of the source where the class came from here. Companion object link also feels out of place here. It's not just metadata which is what I normally think of that section as, but an integral part of consuming the API of that class. I'd prefer to have it closer to the header, like scaladoc does.
  • The list in the docs of Option seems to be ill formatted.
  • Don't show annotations in the signature for class pages. They're already shown in the metadata section, and in many cases contain info that I don't care too much about like SerialVersionUID
  • Port over the class, trait and object icons from Scaladoc. They really help to tell me what I'm looking at with a quick glance
  • I'd love some larger margins and more padding around the place. Paragraphs, member blocks and more. Just in general a tiny bit larger margins and more padding.
  • Narrower pages. Scala3doc currently uses the full width of the screen. On wider screens that can become pretty tiresome to read. Scaladoc sets a limit of 1140px. I don't know if that's a good limit (I'd say so, although maybe something that reacts to screen size a bit more?) but I think some limit should be added.

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions