Skip to content

Commit 625bb7a

Browse files
docs: changed footer text
1 parent 1c27f92 commit 625bb7a

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

build.gradle.kts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
12
import org.jetbrains.dokka.gradle.DokkaTaskPartial
23
import java.net.URI
3-
import java.util.*
44

55
plugins {
66
kotlin("jvm") version "2.0.0"
@@ -14,6 +14,12 @@ version = libs.versions.lib.get()
1414
extra["docsDir"] = layout.projectDirectory.dir("docs/")
1515
val docsDir = extra["docsDir"] as Directory
1616

17+
buildscript {
18+
dependencies {
19+
classpath(libs.dokka.base)
20+
}
21+
}
22+
1723
allprojects {
1824
repositories {
1925
mavenCentral()
@@ -41,6 +47,19 @@ tasks.dokkaHtmlMultiModule {
4147
moduleVersion.set(project.version.toString())
4248
}
4349

50+
tasks.withType<DokkaMultiModuleTask>().configureEach {
51+
val config = """
52+
{
53+
"footerMessage": "© 2024 Nishant Aanjaney Jalan"
54+
}
55+
"""
56+
pluginsMapConfiguration.set(
57+
mapOf(
58+
"org.jetbrains.dokka.base.DokkaBase" to config
59+
)
60+
)
61+
}
62+
4463
tasks.clean {
4564
delete = setOf(docsDir, layout.buildDirectory)
4665
}

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h2 class="">All modules:</h2>
7676
</div>
7777
</div>
7878
<div class="footer">
79-
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2024 Copyright</span><span
79+
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2024 Nishant Aanjaney Jalan</span><span
8080
class="pull-right"><span>Generated by </span><a
8181
href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
8282
</div>

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ lib = "0.1.0"
55
dokkaVer = "1.9.20"
66
mavenPublishingVer = "0.28.0"
77

8+
[libraries]
9+
dokka-base = { module = "org.jetbrains.dokka:dokka-base", version.ref = "dokkaVer" }
10+
811
[plugins]
912
dokka = { id = "org.jetbrains.dokka", version.ref = "dokkaVer" }
1013
maven-publishing = { id = "com.vanniktech.maven.publish", version.ref = "mavenPublishingVer" }

0 commit comments

Comments
 (0)