@@ -69,26 +69,6 @@ afterEvaluate {
6969 }
7070}
7171
72- // tasks.dokkaHtmlMultiModule.configure {
73- // outputDirectory.set(buildDir.resolve("dokkaCustomMultiModuleOutput"))
74- // }
75-
76- // dokkaMultimodule {
77- // // File to be used as an excerpt for each subprojects
78- // documentationFileName = "README.md"
79- // // output format for rendering multimodule page (accepts the same values as regular dokka task)
80- // outputFormat = "gfm"
81- // }
82-
83- // tasks.register<DokkaTask>("dokkaCustomFormat") {
84- // pluginConfiguration<org.jetbrains.dokka.base.DokkaBase, org.jetbrains.dokka.base.DokkaBaseConfiguration> {
85- // customStyleSheets = listOf(file("logo-styles.css"))
86- // customAssets = listOf(file("ktor-logo.png"))
87- // //pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to """{ "footerMessage": "<div style=\"color: red\">custom message</div>" }"""))
88- //
89- // }
90- // }
91-
9272tasks. named(" dokkaHtml" ). configure {
9373 dokkaSourceSets {
9474 configureEach {
@@ -97,62 +77,9 @@ tasks.named("dokkaHtml").configure {
9777 }
9878}
9979tasks. withType(org.jetbrains.dokka.gradle.AbstractDokkaTask ). configureEach {
100- // TODO remove one docs when this is ready for use
10180 outputDirectory. set(rootDir. toPath(). resolve(" docs/docs/api" ). toFile())
102- var year = java.time.LocalDate . now(). year
103- pluginsMapConfiguration. set([
104- // "customStyleSheets": ["${rootDir.toPath().resolve("docs/css/logo-styles.css").toString().replace('\\', '/')}"],
105- // "customAssets": ["${rootDir.toPath().resolve("docs/img/palette_black_36dp.svg").toString().replace('\\', '/')}"],
106- " org.jetbrains.dokka.base.DokkaBase" : """ {
107- "footerMessage": "Copyright © $year snabble GmbH"
108- }""" ])
10981}
11082
111- /*
112- tasks.dokkaHtml.configure {
113- dokkaSourceSets {
114- named("main") {
115- // by changing the moduleName here, the heading in the markdown (README.md) must also be changed
116- moduleName.set("TEST TEST TEST")
117- // since the readme has a level 1 heading matching "Module <moduleName>",
118- // it will be considered as module doc and rendered in dokka
119- includes.from("README.md")
120- // show warnings on undocumented public members
121- reportUndocumented.set(true)
122-
123- // when provided, Dokka generates "source" links for each declaration
124- // see https://github.com/Kotlin/dokka/blob/master/examples/gradle/dokka-gradle-example/build.gradle.kts
125- //sourceLink {
126- // localDirectory.set(file("src/main/kotlin"))
127- // remoteUrl.set(URL("https://github.com/derlin/goodreads-metadata-fetcher/tree/main/src/main/kotlin"))
128- // remoteLineSuffix.set("#L") // this is specific to Github
129- //}
130-
131- // the samples can then be referenced using @sample package.methodName,
132- // where "package" is actually the package defined in each file
133- //samples.from("${file("src/e2e/kotlin/samples/samples.kt")}")
134-
135- // configure the dokka HTML plugin, see https://kotlin.github.io/dokka/1.4.32/user_guide/gradle/usage/#applying-plugins
136- // this syntax is only possible because "org.jetbrains.dokka:dokka-base" is referenced in the buildscript {}
137- // without it, use:
138- //pluginsMapConfiguration.set(
139- // mapOf(
140- // "org.jetbrains.dokka.base.DokkaBase" to """{
141- // "customStyleSheets" : ["${file("dokka/custom-styles.css")}"],
142- // "customAssets": ["${file("dokka/logo-icon.svg")}", "${file("dokka/logo.svg")}"],
143- // "footerMessage": "Made with love by Derlin"
144- // }"""
145- // )
146- //)
147- pluginConfiguration<org.jetbrains.dokka.base.DokkaBase, org.jetbrains.dokka.base.DokkaBaseConfiguration> {
148- customAssets = listOf(file("dokka/logo-icon.svg"), file("dokka/logo.svg"))
149- customStyleSheets = listOf(file("dokka/custom-styles.css"))
150- footerMessage = "Made with ❤ by Derlin"
151- }
152- }
153- }
154- }*/
155-
15683task printVersion () {
15784 println project. sdkVersion
15885}
0 commit comments