@@ -2,6 +2,7 @@ import kotlinx.html.*
2
2
import kotlinx.html.stream.createHTML
3
3
import org.jetbrains.dokka.base.DokkaBase
4
4
import org.jetbrains.dokka.base.DokkaBaseConfiguration
5
+ import org.jetbrains.dokka.gradle.DokkaTaskPartial
5
6
6
7
buildscript {
7
8
dependencies {
@@ -51,6 +52,12 @@ subprojects {
51
52
version = rootProject.version
52
53
group = rootProject.group
53
54
55
+ tasks.withType<DokkaTaskPartial >().configureEach {
56
+ pluginConfiguration<DokkaBase , DokkaBaseConfiguration > {
57
+ footerMessage = createFooterMessage()
58
+ }
59
+ }
60
+
54
61
tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > ().all {
55
62
kotlinOptions {
56
63
jvmTarget = " 11"
@@ -117,6 +124,7 @@ tasks.dokkaHtmlMultiModule {
117
124
outputDirectory.set(docsDir.resolve(" $version " ))
118
125
pluginConfiguration<DokkaBase , DokkaBaseConfiguration > {
119
126
customAssets + = file(projectDir.resolve(" dokka/logo-dark.svg" ))
127
+ customAssets + = file(projectDir.resolve(" dokka/logo-icon.svg" ))
120
128
customStyleSheets + = file(projectDir.resolve(" dokka/logo-styles.css" ))
121
129
footerMessage = createFooterMessage()
122
130
}
@@ -160,6 +168,7 @@ fun createDocsIndexPage(): String {
160
168
meta(charset = " utf-8" )
161
169
link(href = " ./$version /styles/style.css" , rel = " Stylesheet" )
162
170
link(href = " ./$version /styles/logo-styles.css" , rel = " Stylesheet" )
171
+ link(href = " ./$version /images/logo-icon.svg" , rel = " icon" )
163
172
title(" modelix.core API Reference" )
164
173
style {
165
174
unsafe {
0 commit comments