Does ScalaDoc support string interpolation? I want to use variables to generate different documents, and these variables are defined in class, object, trait or package. Like this:
/** a == s"\${a}" */
class A {
val a = 10
}
Does ScalaDoc support string interpolation? I want to use variables to generate different documents, and these variables are defined in class, object, trait or package. Like this:
/** a == s"\${a}" */
class A {
val a = 10
}
Not sure if it fits your use case, but as per https://docs.scala-lang.org/overviews/scaladoc/for-library-authors.html Scaladoc has “macro definitions” which allow substitution of values.
It seems is not I wanted. @define just defines variable in comment, but I want to refer to the variable of code.