diff options
| author | Jim Lawson | 2017-01-20 09:23:00 -0800 |
|---|---|---|
| committer | GitHub | 2017-01-20 09:23:00 -0800 |
| commit | fb104879321a32bdf52a9ea938fec9538eb3d36e (patch) | |
| tree | 29c6c3e1d1ad26f06f72b45cfe4f2ead7f83aee9 /build.sbt | |
| parent | 51fde13c21825f87ee7fc854eb41215e02076bb5 (diff) | |
| parent | 58c1840c7db278417fcceaf035e9df7601233406 (diff) | |
Merge pull request #408 from ucb-bar/scaladocroot
Fix ScalaDoc complaints; add sbt-site, sbt-ghpages boilerplate.
Diffstat (limited to 'build.sbt')
| -rw-r--r-- | build.sbt | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -1,4 +1,16 @@ +// See LICENSE for license details. +// sbt-site - sbt-ghpages + +site.settings + +site.includeScaladoc() + +ghpages.settings + +git.remoteRepo := "git@github.com:ucb-bar/firrtl.git" + +// Firrtl code organization := "edu.berkeley.cs" @@ -40,3 +52,21 @@ antlr4GenListener in Antlr4 := false // default = true antlr4PackageName in Antlr4 := Option("firrtl.antlr") +// ScalaDoc + +import UnidocKeys._ + +lazy val customUnidocSettings = unidocSettings ++ Seq ( + doc in Compile := (doc in ScalaUnidoc).value, + target in unidoc in ScalaUnidoc := crossTarget.value / "api" +) + +autoAPIMappings := true + +scalacOptions in Compile in doc ++= Seq( + "-diagrams", + "-diagrams-max-classes", "25", + "-doc-version", version.value, + "-doc-title", name.value, + "-doc-root-content", baseDirectory.value+"/root-doc.txt" +) |
