commit
b84624fc70
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue