scaladoc在哪里寻找rootdoc.txt来创建根doc [英] Where does scaladoc look for the rootdoc.txt to create the root doc

查看:77
本文介绍了scaladoc在哪里寻找rootdoc.txt来创建根doc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是为根软件包生成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似乎没有对其进行扫描.我试图将其放在srcsrc/mainsrc/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 scaladocat 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 docbut to Compile:

 scalacOptions in Compile ++= Seq("-doc-root-content", "rootdoc.txt")

在项目的根目录中使用rootdoc.txt.

With rootdoc.txtat the root of your project.

这篇关于scaladoc在哪里寻找rootdoc.txt来创建根doc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆