Add docs and examples for RS fromPublisher #25468

This commit is contained in:
Arnout Engelen 2020-03-11 15:56:59 +01:00 committed by GitHub
parent 45636e5af4
commit dba69dba1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 155 additions and 31 deletions

View file

@ -251,7 +251,7 @@ object StreamOperatorsIndexGenerator extends AutoPlugin {
// This forces the short description to be on a single line. We could make this smarter,
// but 'forcing' the short description to be really short seems nice as well.
val description = lines(2)
.replaceAll("]\\(", "](" + file.getAbsolutePath.replaceFirst(".*/([^/]+/).*", "$1"))
.replaceAll("ref:?\\[(.*?)\\]\\(", "ref[$1](" + file.getAbsolutePath.replaceFirst(".*/([^/]+/).*", "$1"))
require(!description.isEmpty, s"description in $file must be non-empty, single-line description at the 3rd line")
val categoryLink = lines(4)
require(