Skip to content

Commit

Permalink
Update ScaladocFeatures.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored Jan 9, 2023
1 parent 4b577d3 commit 3d9e44d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ object ScaladocFeatures extends AutoPlugin {
override def trigger = allRequirements

override val projectSettings = Seq(
Compile / doc / scalacOptions ++= Seq("-doc-root-content", (baseDirectory.value / "README.md").toString()),
Compile / doc / scalacOptions ++= {
if (scalaBinaryVersion.value == 3) {
// Scaladoc 3 supports Markdown
Seq("-doc-root-content", (baseDirectory.value / "README.md").toString())
} else {
Seq.empty
}
},
scalacOptions in Compile in doc += "-groups",
scalacOptions in Compile in doc += "-diagrams",
scalacOptions in Compile in doc += "-implicits",
Expand Down

0 comments on commit 3d9e44d

Please sign in to comment.