Skip to content

Commit

Permalink
Replace package name on cover with "Package-level declarations" (#2586)
Browse files Browse the repository at this point in the history
* Replace package name on cover with "Package-level declarations"
  • Loading branch information
IgnatBeresnev authored Jul 26, 2022
1 parent b6a8e58 commit ddfce85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 2 additions & 4 deletions plugins/base/src/main/resources/dokka/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ html ::-webkit-scrollbar-thumb {
}

.cover > .platform-hinted {
padding-top: 12px;
margin-top: 12px;
padding-bottom: 12px;
}

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions plugins/base/src/test/kotlin/utils/contentUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fun ContentMatcherBuilder<*>.propertySignature(
value: String? = null
) {
group {
header { +"Package test" }
header { +"Package-level declarations" }
skipAllNotMatching()
}
group {
Expand Down Expand Up @@ -190,7 +190,7 @@ fun ContentMatcherBuilder<*>.propertySignature(

fun ContentMatcherBuilder<*>.typealiasSignature(name: String, expressionTarget: String) {
group {
header { +"Package test" }
header { +"Package-level declarations" }
skipAllNotMatching()
}
group {
Expand Down

0 comments on commit ddfce85

Please sign in to comment.