Skip to content

Commit 34d96b9

Browse files
committed
updating doc processor to 0.3.4 and setting html output dir
1 parent 1fc56a4 commit 34d96b9

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

core/build.gradle.kts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,20 @@ val kotlinTestSources: FileCollection = kotlin.sourceSets.test.get().kotlin.sour
197197

198198
fun pathOf(vararg parts: String) = parts.joinToString(File.separator)
199199

200+
201+
// Include both test and main sources for cross-referencing, Exclude generated sources
202+
val processKDocsMainSources = (kotlinMainSources + kotlinTestSources)
203+
.filterNot { pathOf("build", "generated") in it.path }
204+
200205
// Task to generate the processed documentation
201-
val processKDocsMain by creatingProcessDocTask(
202-
sources = (kotlinMainSources + kotlinTestSources) // Include both test and main sources for cross-referencing
203-
.filterNot { pathOf("build", "generated") in it.path }, // Exclude generated sources
204-
) {
206+
val processKDocsMain by creatingProcessDocTask(processKDocsMainSources) {
205207
target = file(generatedSourcesFolderName)
206208
arguments += ARG_DOC_PROCESSOR_LOG_NOT_FOUND to false
207209

210+
exportAsHtml {
211+
dir = file("../docs/StardustDocs/snippets")
212+
}
213+
208214
task {
209215
group = "KDocs"
210216
doLast {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ kotestAsserions = "5.5.4"
4848

4949
jsoup = "1.17.2"
5050
arrow = "15.0.0"
51-
docProcessor = "0.3.3"
51+
docProcessor = "0.3.4"
5252
simpleGit = "2.0.3"
5353
dependencyVersions = "0.51.0"
5454
plugin-publish = "1.2.1"

0 commit comments

Comments
 (0)