Skip to content

Commit 0f9311a

Browse files
authored
chore: fix dokka styles (#633)
1 parent a20f7e5 commit 0f9311a

File tree

4 files changed

+29
-20
lines changed

4 files changed

+29
-20
lines changed

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ allprojects {
3737
val pluginConfigMap = mapOf(
3838
"org.jetbrains.dokka.base.DokkaBase" to """
3939
{
40-
"customStyleSheets": ["${rootProject.file("docs/dokka-presets/css/logo-styles.css")}"],
40+
"customStyleSheets": [
41+
"${rootProject.file("docs/dokka-presets/css/logo-styles.css")}",
42+
"${rootProject.file("docs/dokka-presets/css/aws-styles.css")}"
43+
],
4144
"customAssets": [
4245
"${rootProject.file("docs/dokka-presets/assets/logo-icon.svg")}",
4346
"${rootProject.file("docs/dokka-presets/assets/aws_logo_white_59x35.png")}"
@@ -79,7 +82,7 @@ if (project.prop("kotlinWarningsAsErrors")?.toString()?.toBoolean() == true) {
7982

8083
// configure the root multimodule docs
8184
tasks.dokkaHtmlMultiModule.configure {
82-
moduleName.set("Smithy SDK for Kotlin")
85+
moduleName.set("Smithy Kotlin")
8386

8487
includes.from(
8588
// NOTE: these get concatenated

docs/dokka-presets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Smithy SDK for Kotlin API Reference
1+
# Smithy Kotlin API Reference
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
7+
:root {
8+
--color-dark: #232f3e;
9+
}

docs/dokka-presets/css/logo-styles.css

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,20 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
#logo {
7-
background-image: url('../images/aws_logo_white_59x35.png');
8-
background-color: #232f3e;
9-
color: #333;
10-
background-size: 59px 35px;
6+
.library-name a {
7+
position: relative;
8+
--logo-width: 72px;
9+
margin-left: calc(var(--logo-width) + 5px);
1110
}
1211

13-
body {
14-
background-color: #f2f3f3;
12+
.library-name a::before {
13+
content: '';
14+
/* path is relative to final asset location output dir */
15+
background-image: url('../images/aws_logo_white_59x35.png');
16+
background-size: contain;
17+
position: absolute;
18+
width: 59px;
19+
height: 35px;
20+
top: -10px;
21+
left: calc(-1 * var(--logo-width) - 5px);
1522
}
16-
17-
/*
18-
* override markdown samples which appear to have broken and/or minimal style
19-
*/
20-
.sample-container {
21-
padding: 16px;
22-
border-radius: 6px;
23-
background-color: rgb(280, 280, 280);
24-
margin: 12px 0 12px 0;
25-
}

0 commit comments

Comments
 (0)