我无法使用 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/