11package plugins
22
3- import common.kotlinJvmTarget
43import common.libs
54import java.net.URI
5+ import org.jetbrains.dokka.DokkaConfiguration.Visibility
66import org.jetbrains.dokka.gradle.DokkaTaskPartial
77
88plugins {
@@ -14,53 +14,45 @@ tasks {
1414 withType<DokkaTaskPartial >().configureEach {
1515 dokkaSourceSets.configureEach {
1616 moduleName = project.name
17- jdkVersion = kotlinJvmTarget.map { it.target.toInt() }
17+ jdkVersion = 20
18+ // jdkVersion = kotlinJvmTarget.map { it.target.toInt() }
1819 noStdlibLink = false
1920 noJdkLink = false
2021 reportUndocumented = false
2122 skipDeprecated = true
2223 includes.from(" README.md" )
2324
24- pluginsMapConfiguration =
25- mapOf (
26- " org.jetbrains.dokka.base.DokkaBase" to
27- """ {
28- "footerMessage": "Copyright © 2023 Suresh"
29- }""" )
25+ documentedVisibilities = setOf (Visibility .PUBLIC , Visibility .PROTECTED )
3026
3127 sourceLink {
32- sourceLink {
33- remoteUrl = libs.versions.publish.scm.url.map { URI (" $it /tree/main/src" ).toURL() }
34- remoteLineSuffix = " #L"
35- }
36-
37- externalDocumentationLink {
38- url = URI (" https://kotlin.github.io/kotlinx.coroutines/package-list" ).toURL()
39- }
40-
41- externalDocumentationLink {
42- url = URI (" https://kotlinlang.org/api/kotlinx.serialization/package-list" ).toURL()
43- }
28+ localDirectory = rootProject.projectDir
29+ remoteUrl = libs.versions.publish.scm.url.map { URI (" $it /tree/main" ).toURL() }
30+ remoteLineSuffix = " #L"
31+ }
4432
45- perPackageOption {
46- matchingRegex = " kotlin($|\\ .).*"
47- skipDeprecated = false
48- reportUndocumented = true // Emit warnings about not documented members
49- includeNonPublic = false
50- }
33+ externalDocumentationLink {
34+ url = URI (" https://kotlin.github.io/kotlinx.coroutines/package-list" ).toURL()
5135 }
5236
53- // val rootPath = rootProject.rootDir.toPath()
54- // val logoCss = rootPath.resolve("docs/css/logo-styles.css").toString().replace('\\', '/')
55- // val paletteSvg =
56- // rootPath.resolve("docs/img/wordmark_small_dark.svg").toString().replace('\\', '/')
57- // pluginsMapConfiguration = mapOf(
58- // "org.jetbrains.dokka.base.DokkaBase" to """{
59- // "customStyleSheets": ["$logoCss"],
60- // "customAssets": ["$paletteSvg"],
61- // "footerMessage": "Copyright © 2021 AJ Alt"
62- // }"""
63- // )
37+ externalDocumentationLink {
38+ url = URI (" https://kotlinlang.org/api/kotlinx.serialization/package-list" ).toURL()
39+ }
6440 }
41+
42+ pluginsMapConfiguration =
43+ mapOf (
44+ " org.jetbrains.dokka.base.DokkaBase" to
45+ """ { "footerMessage": "Copyright © 2023 Suresh"}""" )
46+
47+ // val rootPath = rootProject.rootDir.toPath()
48+ // val logoCss = rootPath.resolve("docs/css/logo-styles.css").toString().replace('\\', '/')
49+ // val paletteSvg = rootPath.resolve("docs/img/img.svg").toString().replace('\\', '/')
50+ // pluginsMapConfiguration = mapOf(
51+ // "org.jetbrains.dokka.base.DokkaBase" to """{
52+ // "customStyleSheets": ["$logoCss"],
53+ // "customAssets": ["$paletteSvg"],
54+ // "footerMessage": "Copyright © 2021 AJ Alt"
55+ // }"""
56+ // )
6557 }
6658}
0 commit comments