From 7453888b0188a2aeff06b8e9893118b889f8d828 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sat, 12 Dec 2015 11:44:39 -0800 Subject: create website --- unidoc.sbt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 unidoc.sbt (limited to 'unidoc.sbt') 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" + ) +} -- cgit v1.2.3