summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormergify[bot]2022-06-23 19:57:26 +0000
committerGitHub2022-06-23 19:57:26 +0000
commit7fc023cd2983cc22a309636d3cd7e0d9066cd805 (patch)
tree50e4677623ceab30521c8e0c5043b3ced4bc43b2
parent1924909e9fec213577cc74970f8cd9c2cf9780c4 (diff)
Publish unidoc as ScalaDoc in chisel project (backport #2595) (#2598)
* Publish unidoc as ScalaDoc in chisel project (#2595) This makes it such that we can stop hosting ScalaDoc on the Chisel website, instead just pointing to the latest docs on javadoc.io (cherry picked from commit 8b9f3d78ea23d9d9f0a118d1a2c30478ca2ff2f9) # Conflicts: # build.sbt * Resolve backport conflicts Co-authored-by: Jack Koenig <koenig@sifive.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-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",