1

I know you can use scaladoc itself to generate hierarchy diagrams but how do I use play doc to do that?

Community
  • 1
  • 1
pathikrit
  • 32,469
  • 37
  • 142
  • 221

1 Answers1

0

You can add following line to the build.sbt to have diagrams generated by the way of doc task.

scalacOptions in Compile in doc += "-diagrams"

If you'd like, you can pass arbitrary parameters, like for example

scalacOptions in Compile in doc ++= Seq("-diagrams", "-diagrams-max-classes", "30")

PS. Make sure that you have the dot program installed.

lpiepiora
  • 13,659
  • 1
  • 35
  • 47