问题描述
这是为根软件包生成scaladoc的副本,但是答案确实如此不注明sbt doc
在哪里寻找rootdoc.txt
.
This is a duplicate of Generate scaladoc for root package, however the Answer does not state where sbt doc
looks for the rootdoc.txt
.
我添加了
scalacOptions in doc ++= Seq("-doc-root-content", "rootdoc.txt")
到我的build.sbt
,但是sbt doc
似乎没有对其进行扫描.我试图将其放在src
,src/main
,src/main/scala
to my build.sbt
, but sbt doc
does not seem to scan it. I tried to put it next to the build.sbt
, in src
, src/main
, src/main/scala
我正在使用sbt 0.12.3
推荐答案
似乎您的论点根本没有提供给scaladoc
.我无法弄清楚为什么在将范围限定为doc
时未传递命令行参数,但是如果您不将其范围限定为doc
而是将其限定为Compile
,则它可以工作:
It seems that your arguments are not given to scaladoc
at all. I cannot figure out why the command line arguments are not passed when scoping to doc
, but it works if you do not scope it to doc
but to Compile
:
scalacOptions in Compile ++= Seq("-doc-root-content", "rootdoc.txt")
在项目的根目录中使用rootdoc.txt
.
With rootdoc.txt
at the root of your project.
这篇关于scaladoc在哪里寻找rootdoc.txt来创建根doc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!