I'm trying to link classes from the JDK into the scaladoc-generated doc.
I've used the -doc-external-doc
option of scaladoc 2.10.1 but without success.
I'm using -doc-external-doc:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar#http://docs.oracle.com/javase/7/docs/api/
, but I get links such as index.html#java.io.File
instead of index.html?java/io/File.html
.
Seems like this option only works for scaladoc-generated doc.
Did I miss an option in scaladoc or should I fill a feature request?
I've configured sbt as follows:
scalacOptions in (Compile,doc) += "-doc-external-doc:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar#http://docs.oracle.com/javase/7/docs/api"
Note: I've seen the Opts.doc.externalAPI
util in the upcoming sbt 0.13. I think a nice addition (not sure if it's possible) would be to pass a ModuleID
instead of a File
. The util would figure out which file corresponds to the ModuleID
.