Update to paradox 0.6.5 (#27664)

Update to paradox 0.6.5
This commit is contained in:
Johannes Rudolph 2019-09-11 10:57:37 +02:00 committed by GitHub
commit b84624fc70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -31,13 +31,13 @@ object ParadoxSupport {
val allClasses = scanner.getAllClasses.getNames.asScala.toVector
Def.task { Seq(
{ context: Writer.Context =>
new SignatureDirective(context.location.tree.label, context.properties, msg => log.warn(msg))
new SignatureDirective(context.location.tree.label, context.properties, context)
},
)}
}.value
)
class SignatureDirective(page: Page, variables: Map[String, String], logWarn: String => Unit) extends LeafBlockDirective("signature") {
class SignatureDirective(page: Page, variables: Map[String, String], ctx: Writer.Context) extends LeafBlockDirective("signature") {
def render(node: DirectiveNode, visitor: Visitor, printer: Printer): Unit =
try {
val labels = node.attributes.values("identifier").asScala.map(_.toLowerCase())
@ -72,7 +72,7 @@ object ParadoxSupport {
}
} catch {
case e: FileNotFoundException =>
throw new SnipDirective.LinkException(s"Unknown snippet [${e.getMessage}] referenced from [${page.path}]")
ctx.error(s"Unknown snippet [${e.getMessage}]", node)
}
}

View file

@ -17,7 +17,7 @@ addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.1")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.4.2")
addSbtPlugin("com.lightbend.akka" % "sbt-paradox-akka" % "0.23")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-apidoc" % "0.2")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.6.4")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.6.5")
addSbtPlugin("com.lightbend" % "sbt-whitesource" % "0.1.16")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.2.0") // for maintenance of copyright file header