Opens a browser window with Javadoc/Scaladoc for the current project or its dependencies.
-
In project/plugins.sbt add
addSbtPlugin("com.persist" % "sbt-view" % "1.0.2")
-
In build.sbt add
viewSettings
-
Make sure that your SBT dependencies include the javadoc jar. Here is an example
"com.foo" %% "foopackage" % "1.2.3" withJavadoc()
-
View Scaladoc for current project. Calls doc if none there.
view
-
Finds an item in the classpath where all words are matched. Unpack the javadoc jar (if not already done) in the ivy2 cache and then view it.
view WORD1 WORD2 ...
The plugin is based on a plugin developed by Whitepages https://github.com/whitepages/WP_Sbt_Plugins
Development of this plugin was supported by 47 Degrees.