我对此并不感到惊讶 - 我正在使用scalajs编写scala play应用程序,而我可以通过在build.sbt中向库依赖项添加withJavadoc()来轻松下载依赖项的javadoc:
Haven找不到一个提供此功能的sbt任务 - 尝试过sbt view task但在我的多项目build.sbt上似乎无法使用:
[server] $ view scalajs-scripts
Too many selected
[1] pinfo(/home/andrew/.ivy2/cache/com.vmunier/scalajs-scripts_2.11/jars/scalajs-scripts_2.11-1.0.0.jar,/home/andrew/.ivy2/cache/com.vmunier/scalajs-scripts_2.11,1.0.0,com/vmunier,scalajs-scripts_2.11-1.0.0)
[2] pinfo(/home/andrew/.ivy2/cache/com.vmunier/scalajs-scripts_2.11/jars/scalajs-scripts_2.11-1.0.0.jar,/home/andrew/.ivy2/cache/com.vmunier/scalajs-scripts_2.11,1.0.0,com/vmunier,scalajs-scripts_2.11-1.0.0)
[3] pinfo(/home/andrew/.ivy2/cache/com.vmunier/scalajs-scripts_2.11/jars/scalajs-scripts_2.11-1.0.0.jar,/home/andrew/.ivy2/cache/com.vmunier/scalajs-scripts_2.11,1.0.0,com/vmunier,scalajs-scripts_2.11-1.0.0)
[success] Total time: 0 s, completed 31-Dec-2016 17:45:01
结束编写脚本以从我的ivy2缓存中提取所有javadoc jar:ivy2cache-doc-extract.sh但需要文件打开,导航,双重检查版本等 - 如果IDE这样做会很方便;
Zeal只提供官方scala api文档,鉴于我在Fedora(25),我没有选择使用OS X用户拥有的javadocset为Dash生成docsets
是否有用户友好的快速方式下载浏览scala项目中引用的所有javadocs / scaladoc?
也许通过切换到maven等。使用javadoc关键字进行搜索往往会在生成javadoc时返回很多结果,并且找到有用的结果有点单调乏味。
谢谢!