You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a custom directive for akka-http for a customization of @snip to include scala signatures from files. This is possible to do by adapting the paradoxProcessor key like this:
valparadoxWithSignatureDirective=Seq(
paradoxProcessor in Compile~= { _ =>// FIXME: this is a HACK so far that copies stuff over from paradox// it would be better if the plugin has a way of specifying extra directives through normal sbt mechanismsnewParadoxProcessor(writer =newWriter(serializerPlugins = context =>Seq(
newActiveLinkSerializer,
newAnchorLinkSerializer,
newDirectiveSerializer(Writer.defaultDirectives(context) :+newSignatureDirective(context.location.tree.label) // <-- only line that is no boilerplate
))))
}
)
It would be nice if custom directives could be specified by just adding them to key.
The text was updated successfully, but these errors were encountered:
We need a custom directive for akka-http for a customization of
@snip
to include scala signatures from files. This is possible to do by adapting theparadoxProcessor
key like this:It would be nice if custom directives could be specified by just adding them to key.
The text was updated successfully, but these errors were encountered: