SBT scaladoc configuration

I'm trying to configure scaladoc in SBT, especially the title, output directory and classpath

I managed to pass in build Add the following to SBT to define the title:

scalacOptions in (Compile,doc) ++= Opts.doc.title("Scala-Tools")

I can't figure out how to change the doc output directory

I don't know how to add jars to classpath The reason why I want to edit the classpath is that when I reference its class, the standard Scala library does not seem to be accepted by scaladoc, that is [[Scala. Option]] leads to a warning that "no connection can be found, and the member is" Scala. Option "

Any help, even in the form of an example SBT configuration, will be appreciated!

I'm using scala 2.10-rc3 and SBT 0.12 one

Solution

The scala library is on the classpath, otherwise scaladoc will find errors soon The warning you see means that scaladoc doesn't know how to link to option To do this, you need to use the - External URLs option or 2.10 The - doc external doc option in 1 For the upcoming 2.10 The output of scaladoc - help of 1 shows:

-doc-external-doc:<external-doc>  comma-separated list of classpath_entry_path#doc_URL pairs describing external dependencies.
-external-urls:<externalUrl(s)>   (deprecated) comma-separated list of package_names=doc_URL for external dependencies,where package names are ':'-separated

Until 2.10 1's solution is to use - External URIs:

-external-urls:scala=http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>