Merge pull request #1046 from tlockney/feature/epub-support
added basic support for Epub generation
This commit is contained in:
commit
50fb495e56
2 changed files with 6 additions and 6 deletions
|
|
@ -15,7 +15,7 @@ import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
|
||||||
import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
|
import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
|
||||||
import com.typesafe.sbt.SbtSite.site
|
import com.typesafe.sbt.SbtSite.site
|
||||||
import com.typesafe.sbt.site.SphinxSupport
|
import com.typesafe.sbt.site.SphinxSupport
|
||||||
import com.typesafe.sbt.site.SphinxSupport.{ enableOutput, generatePdf, generatedPdf, sphinxInputs, sphinxPackages, Sphinx }
|
import com.typesafe.sbt.site.SphinxSupport.{ enableOutput, generatePdf, generatedPdf, generateEpub, generatedEpub, sphinxInputs, sphinxPackages, Sphinx }
|
||||||
import com.typesafe.sbt.preprocess.Preprocess.{ preprocess, preprocessExts, preprocessVars, simplePreprocess }
|
import com.typesafe.sbt.preprocess.Preprocess.{ preprocess, preprocessExts, preprocessVars, simplePreprocess }
|
||||||
import ls.Plugin.{ lsSettings, LsKeys }
|
import ls.Plugin.{ lsSettings, LsKeys }
|
||||||
import java.lang.Boolean.getBoolean
|
import java.lang.Boolean.getBoolean
|
||||||
|
|
@ -382,6 +382,7 @@ object AkkaBuild extends Build {
|
||||||
orig
|
orig
|
||||||
},
|
},
|
||||||
enableOutput in generatePdf in Sphinx := true,
|
enableOutput in generatePdf in Sphinx := true,
|
||||||
|
enableOutput in generateEpub in Sphinx := true,
|
||||||
unmanagedSourceDirectories in Test <<= sourceDirectory in Sphinx apply { _ ** "code" get },
|
unmanagedSourceDirectories in Test <<= sourceDirectory in Sphinx apply { _ ** "code" get },
|
||||||
libraryDependencies ++= Dependencies.docs,
|
libraryDependencies ++= Dependencies.docs,
|
||||||
unmanagedSourceDirectories in ScalariformKeys.format in Test <<= unmanagedSourceDirectories in Test,
|
unmanagedSourceDirectories in ScalariformKeys.format in Test <<= unmanagedSourceDirectories in Test,
|
||||||
|
|
@ -448,19 +449,19 @@ object AkkaBuild extends Build {
|
||||||
|
|
||||||
lazy val defaultMultiJvmOptions: Seq[String] = {
|
lazy val defaultMultiJvmOptions: Seq[String] = {
|
||||||
import scala.collection.JavaConverters._
|
import scala.collection.JavaConverters._
|
||||||
// multinode.D= and multinode.X= makes it possible to pass arbitrary
|
// multinode.D= and multinode.X= makes it possible to pass arbitrary
|
||||||
// -D or -X arguments to the forked jvm, e.g.
|
// -D or -X arguments to the forked jvm, e.g.
|
||||||
// -Dmultinode.Djava.net.preferIPv4Stack=true -Dmultinode.Xmx512m -Dmultinode.XX:MaxPermSize=256M
|
// -Dmultinode.Djava.net.preferIPv4Stack=true -Dmultinode.Xmx512m -Dmultinode.XX:MaxPermSize=256M
|
||||||
val MultinodeJvmArgs = "multinode\\.(D|X)(.*)".r
|
val MultinodeJvmArgs = "multinode\\.(D|X)(.*)".r
|
||||||
val akkaProperties = System.getProperties.propertyNames.asScala.toList.collect {
|
val akkaProperties = System.getProperties.propertyNames.asScala.toList.collect {
|
||||||
case MultinodeJvmArgs(a, b) =>
|
case MultinodeJvmArgs(a, b) =>
|
||||||
val value = System.getProperty("multinode." + a + b)
|
val value = System.getProperty("multinode." + a + b)
|
||||||
"-" + a + b + (if (value == "") "" else "=" + value)
|
"-" + a + b + (if (value == "") "" else "=" + value)
|
||||||
case key: String if key.startsWith("multinode.") => "-D" + key + "=" + System.getProperty(key)
|
case key: String if key.startsWith("multinode.") => "-D" + key + "=" + System.getProperty(key)
|
||||||
case key: String if key.startsWith("akka.") => "-D" + key + "=" + System.getProperty(key)
|
case key: String if key.startsWith("akka.") => "-D" + key + "=" + System.getProperty(key)
|
||||||
}
|
}
|
||||||
|
|
||||||
"-Xmx256m" :: akkaProperties :::
|
"-Xmx256m" :: akkaProperties :::
|
||||||
(if (getBoolean("sbt.log.noformat")) List("-Dakka.test.nocolor=true") else Nil)
|
(if (getBoolean("sbt.log.noformat")) List("-Dakka.test.nocolor=true") else Nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -771,4 +772,3 @@ object Dependencies {
|
||||||
|
|
||||||
val multiNodeSample = Seq(Test.scalatest)
|
val multiNodeSample = Seq(Test.scalatest)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.3.5")
|
||||||
|
|
||||||
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.0.0")
|
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.0.0")
|
||||||
|
|
||||||
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.7.0-M1")
|
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.6.1")
|
||||||
|
|
||||||
addSbtPlugin("com.typesafe.sbtosgi" % "sbtosgi" % "0.3.0")
|
addSbtPlugin("com.typesafe.sbtosgi" % "sbtosgi" % "0.3.0")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue