-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add external mappings for scaladoc #211
Conversation
98cd15e
to
e3f4771
Compare
Updated change to include |
External mappings allow linking to other project's documentation, which makes it easier for users to understand the API.
e3f4771
to
e4e7743
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Is there no such option for Scala 2, or why do you just link when we build for Scala 3?
Scala 2 Scaladoc definitely supports source links; see for example the "Source: ..." link at https://www.scala-lang.org/api/2.13.11/scala/collection/immutable/List.html . it's via be careful about scala/bug#12867 though — a behavior changed between 2.13.11 and 2.13.12 |
This PR isn't so much about source links but about cross-references to scaladoc of API dependencies. E.g. The |
Oh, sorry, I read too quickly. But yes, Scala 2 Scaladoc has that too, via |
Is there any documentation about it? I'm having a hard time to find more documentation or even the |
Worked for me, just now, so maybe that could use its own ticket.
It appears there otherwise isn't doc. https://docs.scala-lang.org/overviews/scaladoc/for-library-authors.html is where it should be, if it existed.
|
I played a bit (probably an understatement) with |
Thank you, @Flowdalic ! |
External mappings allow linking to other project's documentation, which makes it easier for users to understand the API.
This is a WIP. The main thing to address is that the place where we set scalaDocOptions may be not correct, I could imagine that it should be done in
OsJvmModule
. Furthermore, I should be only set ifscaladoc
from Scala 3 is used, as the-external
mappings` option is only available from there on. Unfortunately, I lack the mill and os-lib build system knowledge to proceed here. Any feedback would be appreciated.