I'm trying to configure the Scaladoc in SBT, specifically the title, output directory and classpath.
I managed to define the title by adding the following to build.sbt:
scalacOptions in (Compile, doc) ++= Opts.doc.title("Scala-Tools")
I can't figure out how to change the doc output directory.
I also can't figure out how to add jars to classpath. The reason I want to edit the classpath is because it appears the standard Scala library is not getting picked up by scaladoc when I refer to its classes, i.e. [[scala.Option]] leads to a warning "Could not find any member to link for "scala.Option"."
Any help, even in the form of an example SBT configuration would be appreciated!
I'm using Scala 2.10-RC3 and SBT 0.12.1.
The Scala library is on the classpath, otherwise scaladoc would bail out with an error pretty quickly. The warning you see means that scaladoc doesn't know how to link to Option. For this, you need to use either the
-external-urls
option or the-doc-external-doc
option coming in 2.10.1. The output ofscaladoc -help
for the upcoming 2.10.1 shows:The solution until 2.10.1 is out is to use
-external-uris
: