You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
709 B

  1. import sbt._
  2. import Keys._
  3. import com.typesafe.sbt.site._
  4. object SiteSettingsPlugin extends AutoPlugin {
  5. override def trigger = allRequirements
  6. override def requires = SiteScaladocPlugin
  7. override lazy val projectSettings = Seq(
  8. scalacOptions in (Compile,doc) ++= Seq(
  9. "-groups",
  10. "-implicits",
  11. "-diagrams",
  12. "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath
  13. ),
  14. scalacOptions in (Compile,doc) ++= (
  15. (BasicSettings: SettingTemplate).sourceLocation("master") match {
  16. case Some(url) =>
  17. val srcUrl = url + "€{FILE_PATH}.scala"
  18. Seq("-doc-source-url", srcUrl)
  19. case None =>
  20. Seq.empty
  21. }
  22. )
  23. )
  24. }