stevedlawrence commented on code in PR #1237:
URL: https://github.com/apache/daffodil/pull/1237#discussion_r1600201705
##########
build.sbt:
##########
@@ -413,14 +413,27 @@ lazy val ratSettings = Seq(
)
lazy val unidocSettings = Seq(
- ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(sapi, udf),
+ ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(sapi, udf,
runtime1),
ScalaUnidoc / unidoc / scalacOptions := Seq(
"-doc-title",
"Apache Daffodil " + version.value + " Scala API",
"-doc-root-content",
(sapi / baseDirectory).value + "/root-doc.txt"
),
- JavaUnidoc / unidoc / unidocProjectFilter := inProjects(japi, udf),
+ ScalaUnidoc / unidoc / unidocAllSources :=
+ (ScalaUnidoc / unidoc / unidocAllSources).value.map { sources =>
+ sources.filter { source =>
+ //
+ // This filter limits the scaladoc to only files which have
+ // api, sapi, or japi as directory names in their paths.
+ //
+ val str = source.toString
Review Comment:
Another option might be to use full paths, e.g.
```
str.conains("/org/apache/daffodil/udf/") ||
...
```
This might be better so we are more explicitly about exactly which package
namespaces are considered public API.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]