File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
1
2
import org.jetbrains.dokka.gradle.DokkaTaskPartial
2
3
import java.net.URI
3
- import java.util.*
4
4
5
5
plugins {
6
6
kotlin(" jvm" ) version " 2.0.0"
@@ -14,6 +14,12 @@ version = libs.versions.lib.get()
14
14
extra[" docsDir" ] = layout.projectDirectory.dir(" docs/" )
15
15
val docsDir = extra[" docsDir" ] as Directory
16
16
17
+ buildscript {
18
+ dependencies {
19
+ classpath(libs.dokka.base)
20
+ }
21
+ }
22
+
17
23
allprojects {
18
24
repositories {
19
25
mavenCentral()
@@ -41,6 +47,19 @@ tasks.dokkaHtmlMultiModule {
41
47
moduleVersion.set(project.version.toString())
42
48
}
43
49
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
+
44
63
tasks.clean {
45
64
delete = setOf (docsDir, layout.buildDirectory)
46
65
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ <h2 class="">All modules:</h2>
76
76
</ div >
77
77
</ div >
78
78
< 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
80
80
class ="pull-right "> < span > Generated by </ span > < a
81
81
href ="https://github.com/Kotlin/dokka "> < span > dokka</ span > < span class ="padded-icon "> </ span > </ a > </ span >
82
82
</ div >
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ lib = "0.1.0"
5
5
dokkaVer = " 1.9.20"
6
6
mavenPublishingVer = " 0.28.0"
7
7
8
+ [libraries ]
9
+ dokka-base = { module = " org.jetbrains.dokka:dokka-base" , version.ref = " dokkaVer" }
10
+
8
11
[plugins ]
9
12
dokka = { id = " org.jetbrains.dokka" , version.ref = " dokkaVer" }
10
13
maven-publishing = { id = " com.vanniktech.maven.publish" , version.ref = " mavenPublishingVer" }
You can’t perform that action at this time.
0 commit comments