scala - 无法在 ScalaDoc (Scala 3) 中添加包描述

标签 scala scaladoc scala-3

我无法使用 Scala 3 在 ScalaDoc 中添加包描述

/** package description */
package foo {
    /** some scaladoc comment */
    def method():A = ???
}
然后我用 sbt (1.5.3) 生成文档
sbt> doc
我没有得到包裹的描述 本身index.html文件,但只有 method 的描述包。

最佳答案

我终于找到了答案

Scaladoc comments can go before fields, methods, classes, traits, objects. For now, scaladoc doesn't support straightforward solution to document packages. There is a dedicated github issue, where you can check the current status of the problem.


https://dotty.epfl.ch/docs/usage/scaladoc/scaladocDocstrings.html

关于scala - 无法在 ScalaDoc (Scala 3) 中添加包描述,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67957724/

相关文章:

scala - 流式源的查询必须使用 writeStream.start() 执行;

scala - 使用 Scala 生成 (PHP-) 代码

scala - 绕过模式匹配中的类型删除

scala - 在哪里下载最新的Scala API文档?

scala - 如何在 scala 3 宏中匹配函数 Expr

带有文字类型的 Scala 3 "a match type could not be fully reduced"

斯卡拉函数指针

scala - 是什么导致此 Scala 错误消息?

scala - 为什么 Scalaz 会出现在我项目的 API 文档中?

scala - 2 不同类中具有相同名称的扩展方法在 Scala 3 中不起作用?