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.jar
and-playdoc.jar
artifacts for each dependency - extract the dowloaded
-sources
artifacts intoomnidoc/sources/
- extract the dowloaded
-playdoc
artifacts intoomnidoc/playdoc/
- use
omnidoc/sources/
to produceomnidoc/javadoc/
- use
omnidoc/sources/
to produceomnidoc/scaladoc/
- package
playdoc
intoplay/docs/content
- package
javadoc
intoplay/docs/content/api/java
- package
scaladoc
intoplay/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