aboutsummaryrefslogtreecommitdiff
path: root/unidoc.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'unidoc.sbt')
-rw-r--r--unidoc.sbt15
1 files changed, 15 insertions, 0 deletions
diff --git a/unidoc.sbt b/unidoc.sbt
new file mode 100644
index 0000000..9e471d0
--- /dev/null
+++ b/unidoc.sbt
@@ -0,0 +1,15 @@
+import sbtunidoc.Plugin.UnidocKeys._
+
+unidocSettings
+
+scalacOptions in (ScalaUnidoc, unidoc) ++= Seq(
+ "-groups", // Group similar methods together based on the @group annotation.
+ "-diagrams", // Show classs hierarchy diagrams (requires 'dot' to be available on path)
+ "-implicits", // Add methods "inherited" through implicit conversions
+ "-sourcepath", baseDirectory.value.getAbsolutePath
+) ++ {
+ val latestTag: String = "git describe --abbrev=0".!!
+ Opts.doc.sourceUrl(
+ s"https://github.com/jodersky/flow/blob/$latestTag€{FILE_PATH}.scala"
+ )
+}