-
Notifications
You must be signed in to change notification settings - Fork 118
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
Improve display text for libraries #3552
Conversation
For my 0.02, I do think it's useful to show the file extension ( |
I'd actually argue LEAVE the |
@goderbauer I found a few differences in how this shows api.flutter.dev; almost zero libraries are located deeper than BEFOREAFTERThere may be some misconceptions about |
For now, there were more recommendations to leave the And yes, I really like the tooltip idea. I'd like to land that as well, separately. |
I would agree with that. Given the current layout, dartdoc's output seems reasonable, though. I'll see if we can fix up the layout, but that shouldn't block this work here. |
Hi @kallentu , as part of learning the code here, you could participate in code review for this PR. You can read over the two issues that are fixed by this PR and ask me any questions about the code. |
cd3f505
to
99e0f79
Compare
Fixes #1658 and fixes #1000.
The changes in this PR do not ever print the full import URI (like
package:googleapis/admob/v1.dart
) or even the import path with the.dart
extension (likeadmob/v1.dart
), except in the breadcrumb. Mainly this PR uses the basename of the library with its directory path afterlib/
(likeadmob/v1
). Here are some screenshots:Additionally:
Library.prefixToLibrary
private.Library.dirName
to just inline all of its helper methods. I think it is much more readable this way.Library.nameFromPath
(as part of the above).Contribution guidelines:
dart format
.Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.