Skip to content

Commit 404a56e

Browse files
committed
Setup link to website via Dokka homepageLink
1 parent 1ac0195 commit 404a56e

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

build-logic/src/main/kotlin/ckbuild.documentation.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
* Copyright (c) 2023-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
import ckbuild.*
6+
57
plugins {
8+
kotlin("multiplatform")
69
id("org.jetbrains.dokka")
710
}
811

912
dokka {
13+
setupHomepageLink()
14+
1015
dokkaPublications.configureEach {
1116
// we don't suppress inherited members explicitly as without it classes like RSA.OAEP don't show functions like keyGenerator
1217
suppressInheritedMembers = false

build-logic/src/main/kotlin/ckbuild/docs.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
package ckbuild
22

3+
import org.gradle.kotlin.dsl.*
34
import org.jetbrains.dokka.gradle.*
5+
import org.jetbrains.dokka.gradle.engine.plugins.*
6+
7+
fun DokkaExtension.setupHomepageLink() {
8+
pluginsConfiguration.named<DokkaHtmlPluginParameters>("html") {
9+
homepageLink.set("https://whyoleg.github.io/cryptography-kotlin")
10+
}
11+
}
412

513
fun DokkaExtension.registerKotlinxIoExternalDocumentation() {
614
dokkaSourceSets.configureEach {

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ plugins.withType<WasmNodeJsRootPlugin> {
3434
}
3535
}
3636

37+
dokka {
38+
setupHomepageLink()
39+
}
40+
3741
dependencies {
3842
Projects.libraries.forEach {
3943
dokka(project(":$it"))

0 commit comments

Comments
 (0)