Skip to content

Commit

Permalink
Merge pull request #93 from sirthias/develop
Browse files Browse the repository at this point in the history
Upgrade ParadoxSitePlugin to sbt-paradox 0.2.9
  • Loading branch information
jonas authored Apr 19, 2017
2 parents d9b08e0 + 85ec11a commit e214391
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ libraryDependencies ++= Seq(
"org.asciidoctor" % "asciidoctorj" % "1.5.4"
)

addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.2.7")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.2.9")

addSbtPlugin("org.planet42" % "laika-sbt" % "0.6.0")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ object ParadoxSitePlugin extends AutoPlugin {
import ParadoxPlugin.autoImport._
override def projectSettings = paradoxSettings(Paradox)
def paradoxSettings(config: Configuration): Seq[Setting[_]] =
ParadoxPlugin.paradoxGlobalSettings ++
ParadoxPlugin.paradoxSettings(config) ++
inConfig(config)(
ParadoxPlugin.paradoxSettings ++
List(
sourceDirectory in paradox := sourceDirectory.value,
sourceDirectory in paradox := {
val sd = sourceDirectory.value
if (sd.toString endsWith "/paradox/paradox") new File(sd.toString dropRight "/paradox".length) else sd
},
includeFilter := AllPassFilter,
mappings := {
val _ = paradox.value
Expand Down

0 comments on commit e214391

Please sign in to comment.