aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-07-26 14:55:56 +0200
committerGitHub <noreply@github.com>2022-07-26 14:55:56 +0200
commitddfce852a8ce8e81adc4d4ff3e9956b330965e63 (patch)
tree30ba97f6431b15c17c18864b416c2e2f8e3490f1 /plugins
parentb6a8e58832929cd08d7fcd9f92e7fd010990f5e0 (diff)
downloaddokka-ddfce852a8ce8e81adc4d4ff3e9956b330965e63.tar.gz
dokka-ddfce852a8ce8e81adc4d4ff3e9956b330965e63.tar.bz2
dokka-ddfce852a8ce8e81adc4d4ff3e9956b330965e63.zip
Replace package name on cover with "Package-level declarations" (#2586)
* Replace package name on cover with "Package-level declarations"
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt2
-rw-r--r--plugins/base/src/main/resources/dokka/styles/style.css6
-rw-r--r--plugins/base/src/test/kotlin/utils/contentUtils.kt4
3 files changed, 5 insertions, 7 deletions
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 {