summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index c3d25a09..a287fee9 100644
--- a/build.sbt
+++ b/build.sbt
@@ -219,6 +219,10 @@ lazy val chisel = (project in file(".")).
),
libraryDependencies += defaultVersions("treadle") % "test",
Test / scalacOptions += "-P:chiselplugin:genBundleElements",
+ // Forward doc command to unidoc
+ Compile / doc := (ScalaUnidoc / doc).value,
+ // Include unidoc as the ScalaDoc for publishing
+ Compile / packageDoc / mappings := (ScalaUnidoc / packageDoc / mappings).value,
scalacOptions in Test ++= Seq("-language:reflectiveCalls"),
scalacOptions in Compile in doc ++= Seq(
"-diagrams",