aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorJim Lawson2017-01-05 10:09:11 -0800
committerJim Lawson2017-01-05 10:09:11 -0800
commitefc367e883ffd8c0a239f04943e4bda5ce356da4 (patch)
tree280daa55255c51f03600a65802c2274bc55d3176 /build.sbt
parent8a1cdf15d131e086ddc9de6bfe8cd90ed7fb3eb7 (diff)
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"
+)