File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -197,14 +197,20 @@ val kotlinTestSources: FileCollection = kotlin.sourceSets.test.get().kotlin.sour
197197
198198fun 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 {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ kotestAsserions = "5.5.4"
4848
4949jsoup = " 1.17.2"
5050arrow = " 15.0.0"
51- docProcessor = " 0.3.3 "
51+ docProcessor = " 0.3.4 "
5252simpleGit = " 2.0.3"
5353dependencyVersions = " 0.51.0"
5454plugin-publish = " 1.2.1"
You can’t perform that action at this time.
0 commit comments