From 610cc28b46923d8b84c60dbf319071acf2ad2c6b Mon Sep 17 00:00:00 2001 From: Michael Stringer Date: Wed, 23 Aug 2017 16:17:06 +0100 Subject: [PATCH] Publish scaladocs to GH --- build.sbt | 9 +++++++-- project/plugins.sbt | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 0fa24ad..2815999 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,5 @@ import PgpKeys.{publishLocalSigned, publishSigned} +import com.typesafe.sbt.SbtGit.GitKeys._ organization := "software.purpledragon.xml" version := "0.0.1" @@ -31,9 +32,13 @@ lazy val root = project publishLocal := {}, publishLocalSigned := {}, test := {}, - testOnly := {} + testOnly := {}, + siteSubdirName in ScalaUnidoc := "api", + addMappingsToSiteDir(mappings in (ScalaUnidoc, packageDoc), siteSubdirName in ScalaUnidoc), + gitRemoteRepo := "git@github.com:stringbean/scala-xml-compare.git", + ghpagesNoJekyll := true ) - .enablePlugins(ScalaUnidocPlugin) + .enablePlugins(ScalaUnidocPlugin, GhpagesPlugin) useGpg := true usePgpKeyHex("B19D7A14F6F8B3BFA9FF655A5216B5A5F723A92D") \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt index 7433d75..ac31cc6 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -12,4 +12,5 @@ addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1") addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") // documentation -addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1") \ No newline at end of file +addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1") +addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2") \ No newline at end of file