From 7fc023cd2983cc22a309636d3cd7e0d9066cd805 Mon Sep 17 00:00:00 2001 From: mergify[bot] Date: Thu, 23 Jun 2022 19:57:26 +0000 Subject: 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 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>--- build.sbt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build.sbt') 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", -- cgit v1.2.3