From ddfce852a8ce8e81adc4d4ff3e9956b330965e63 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Tue, 26 Jul 2022 14:55:56 +0200 Subject: Replace package name on cover with "Package-level declarations" (#2586) * Replace package name on cover with "Package-level declarations" --- .../src/main/kotlin/translators/documentables/DefaultPageCreator.kt | 2 +- plugins/base/src/main/resources/dokka/styles/style.css | 6 ++---- plugins/base/src/test/kotlin/utils/contentUtils.kt | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'plugins/base') diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt index 52811961..a8b33d4c 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt @@ -223,7 +223,7 @@ open class DefaultPageCreator( protected open fun contentForPackage(p: DPackage) = contentBuilder.contentFor(p) { group(kind = ContentKind.Cover) { - cover("Package ${p.name}") + cover("Package-level declarations") if (contentForDescription(p).isNotEmpty()) { sourceSetDependentHint( p.dri, diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css index 9bc9f07d..b3749e73 100644 --- a/plugins/base/src/main/resources/dokka/styles/style.css +++ b/plugins/base/src/main/resources/dokka/styles/style.css @@ -192,8 +192,6 @@ html ::-webkit-scrollbar-thumb { } .cover > .platform-hinted { - padding-top: 12px; - margin-top: 12px; padding-bottom: 12px; } @@ -550,8 +548,8 @@ h1 { h1.cover { - font-size: 60px; - line-height: 64px; + font-size: 52px; + line-height: 56px; letter-spacing: -1.5px; margin-bottom: 0; padding-bottom: 32px; diff --git a/plugins/base/src/test/kotlin/utils/contentUtils.kt b/plugins/base/src/test/kotlin/utils/contentUtils.kt index 66e5ef53..0af253df 100644 --- a/plugins/base/src/test/kotlin/utils/contentUtils.kt +++ b/plugins/base/src/test/kotlin/utils/contentUtils.kt @@ -147,7 +147,7 @@ fun ContentMatcherBuilder<*>.propertySignature( value: String? = null ) { group { - header { +"Package test" } + header { +"Package-level declarations" } skipAllNotMatching() } group { @@ -190,7 +190,7 @@ fun ContentMatcherBuilder<*>.propertySignature( fun ContentMatcherBuilder<*>.typealiasSignature(name: String, expressionTarget: String) { group { - header { +"Package test" } + header { +"Package-level declarations" } skipAllNotMatching() } group { -- cgit