diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-03-31 08:39:01 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-31 16:02:09 +0200 |
commit | 6fec129cc61bd2a54f9d1111057c650430426013 (patch) | |
tree | f375410110c17bb3e68723bbbc0f60d382d96fba /plugins/base/src/test/kotlin/utils | |
parent | 810f3c922fb4f11dc3fbdddee82d919189ed8526 (diff) | |
download | dokka-6fec129cc61bd2a54f9d1111057c650430426013.tar.gz dokka-6fec129cc61bd2a54f9d1111057c650430426013.tar.bz2 dokka-6fec129cc61bd2a54f9d1111057c650430426013.zip |
Make PageContentBuilder to create proper content for all tags
Diffstat (limited to 'plugins/base/src/test/kotlin/utils')
-rw-r--r-- | plugins/base/src/test/kotlin/utils/contentUtils.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/base/src/test/kotlin/utils/contentUtils.kt b/plugins/base/src/test/kotlin/utils/contentUtils.kt index 4bb36553..1e19058a 100644 --- a/plugins/base/src/test/kotlin/utils/contentUtils.kt +++ b/plugins/base/src/test/kotlin/utils/contentUtils.kt @@ -1,6 +1,7 @@ package utils import matchers.content.* +import org.jetbrains.dokka.pages.ContentGroup //TODO: Try to unify those functions after update to 1.4 fun ContentMatcherBuilder<*>.signature( @@ -53,4 +54,10 @@ fun ContentMatcherBuilder<*>.pWrapped(text: String) = group {// TODO: remove it when double wrapping for descriptions will be resolved group { +text } br() + } + +fun ContentMatcherBuilder<*>.unnamedTag(tag: String, content: ContentMatcherBuilder<ContentGroup>.() -> Unit) = + group { + header(4) { +tag } + group { content() } }
\ No newline at end of file |