Omnidoc is an sbt build that adds to sbt's mappings in (Compile, packageBin) to aggregate source code and manuals produced within the Play ecosystem and produce a single deliverable. This must not be confused with Interplay's Omnidoc which simply adds some metadata on the -source.jar artifact of every Play library.
The resulting deliverable includes:
- manual (also referred to as
playdoc) - javadoc
- scaladoc
Omnidoc defines 5 tasks to:
- download
-sources.jarand-playdoc.jarartifacts for each dependency - extract the dowloaded
-sourcesartifacts intoomnidoc/sources/ - extract the dowloaded
-playdocartifacts intoomnidoc/playdoc/ - use
omnidoc/sources/to produceomnidoc/javadoc/ - use
omnidoc/sources/to produceomnidoc/scaladoc/ - package
playdocintoplay/docs/content - package
javadocintoplay/docs/content/api/java - package
scaladocintoplay/docs/content/api/scala
NOTE: all the paths above are relative to target/scala-2.1x/ (for example target/scala-2.12/).
Omnidoc will be released as part of a Play Framework release. See https://github.com/playframework/.github/blob/main/RELEASING.md