aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorJim Lawson2017-01-20 09:23:00 -0800
committerGitHub2017-01-20 09:23:00 -0800
commitfb104879321a32bdf52a9ea938fec9538eb3d36e (patch)
tree29c6c3e1d1ad26f06f72b45cfe4f2ead7f83aee9 /build.sbt
parent51fde13c21825f87ee7fc854eb41215e02076bb5 (diff)
parent58c1840c7db278417fcceaf035e9df7601233406 (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.sbt30
1 files changed, 30 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 72efb6ed..4f5a1de9 100644
--- a/build.sbt
+++ b/build.sbt
@@ -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"
+)