aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-03-10 02:29:18 +0100
committerGitHub <noreply@github.com>2021-03-10 02:29:18 +0100
commit5672eac58619fc13c1f611d1e7fe599444400f3b (patch)
treeb6658adb2b7c564ab72daee9b8c88e35e635e78f /plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
parentac2c1adf18289acbff8a79e8cbabe58e00f30f63 (diff)
downloaddokka-5672eac58619fc13c1f611d1e7fe599444400f3b.tar.gz
dokka-5672eac58619fc13c1f611d1e7fe599444400f3b.tar.bz2
dokka-5672eac58619fc13c1f611d1e7fe599444400f3b.zip
Headers in tables (#1768)
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
index ba21f089..f98e284f 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
@@ -146,6 +146,10 @@ open class PageContentBuilder(
}.build()
}
+ internal fun headers(vararg label: String) = contentFor(mainDRI, mainSourcesetData) {
+ label.forEach { text(it) }
+ }
+
fun <T : Documentable> block(
name: String,
level: Int,