Skip to content

Commit a2f749b

Browse files
authored
Merge pull request #580 from Kotlin/docProcessor-0.3.0
Doc processor 0.3.2
2 parents 5f5b5d3 + 564f433 commit a2f749b

File tree

89 files changed

+2972
-3229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2972
-3229
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ kotlinPublications {
166166

167167
localRepositories {
168168
maven {
169-
url = project.file(File(buildDir, "maven")).toURI()
169+
url = project.file(layout.buildDirectory.dir("maven")).toURI()
170170
}
171171
}
172172
}

core/build.gradle.kts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ val compileSamplesKotlin = tasks.named<KotlinCompile>("compileSamplesKotlin") {
8585
libraries.from(it.libraries)
8686
}
8787
source(sourceSets["test"].kotlin)
88-
destinationDirectory.set(file("$buildDir/classes/testWithOutputs/kotlin"))
88+
destinationDirectory.set(layout.buildDirectory.dir("classes/testWithOutputs/kotlin"))
8989
}
9090

9191
tasks.withType<KspTask> {
@@ -101,8 +101,8 @@ tasks.named("lintKotlinSamples") {
101101
}
102102

103103
val clearTestResults by tasks.creating(Delete::class) {
104-
delete(File(buildDir, "dataframes"))
105-
delete(File(buildDir, "korroOutputLines"))
104+
delete(layout.buildDirectory.dir("dataframes"))
105+
delete(layout.buildDirectory.dir("korroOutputLines"))
106106
}
107107

108108
val samplesTest = tasks.register<Test>("samplesTest") {
@@ -121,8 +121,8 @@ val samplesTest = tasks.register<Test>("samplesTest") {
121121

122122
ignoreFailures = true
123123

124-
testClassesDirs = fileTree("$buildDir/classes/testWithOutputs/kotlin")
125-
classpath = files("$buildDir/classes/testWithOutputs/kotlin") + configurations["samplesRuntimeClasspath"] + sourceSets["main"].runtimeClasspath
124+
testClassesDirs = fileTree("${layout.buildDirectory.get().asFile.path}/classes/testWithOutputs/kotlin")
125+
classpath = files("${layout.buildDirectory.get().asFile.path}/classes/testWithOutputs/kotlin") + configurations["samplesRuntimeClasspath"] + sourceSets["main"].runtimeClasspath
126126
}
127127

128128
val clearSamplesOutputs by tasks.creating {
@@ -199,15 +199,6 @@ val processKDocsMain by creatingProcessDocTask(
199199
.filterNot { pathOf("build", "generated") in it.path }, // Exclude generated sources
200200
) {
201201
target = file(generatedSourcesFolderName)
202-
processors = listOf(
203-
INCLUDE_DOC_PROCESSOR,
204-
INCLUDE_FILE_DOC_PROCESSOR,
205-
ARG_DOC_PROCESSOR,
206-
COMMENT_DOC_PROCESSOR,
207-
SAMPLE_DOC_PROCESSOR,
208-
// REMOVE_ESCAPE_CHARS_PROCESSOR, TODO enable when doc preprocessor hits 0.3.0
209-
)
210-
211202
arguments += ARG_DOC_PROCESSOR_LOG_NOT_FOUND to false
212203

213204
task {
@@ -276,7 +267,7 @@ korro {
276267
include("src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/*.kt")
277268
}
278269

279-
outputs = fileTree(project.buildDir) {
270+
outputs = fileTree(project.layout.buildDirectory) {
280271
include("korroOutputLines/*")
281272
}
282273

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/JsonPath.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import java.io.Serializable
55

66
/**
77
* Simplistic JSON path implementation.
8-
* Supports just keys (in bracket notation), double quotes, arrays and wildcards.
8+
* Supports just keys (in bracket notation), double quotes, arrays, and wildcards.
99
*
1010
* Examples:
1111
* `$["store"]["book"][*]["author"]`

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/TypeConversions.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ public fun <T> ColumnGroup<T>.asDataFrame(): DataFrame<T> = this
154154
/**
155155
* ## As ColumnGroup
156156
*
157-
* Creates a [ColumnAccessor][ColumnAccessor]`<`[DataRow][DataRow]`<`[C][C\]`>>` from [this][this\].
157+
* Creates a [ColumnAccessor][ColumnAccessor]`<`[DataRow][DataRow]`<`[C][C]`>>` from [this][this].
158158
* This is especially useful when you want to use [ColumnGroup] functions in the [ColumnsSelectionDsl] but your column
159159
* type is not recognized as a [ColumnGroup].
160-
* If you're not sure whether a column is recognized as [ColumnGroup] or not, you can always call [asColumnGroup][asColumnGroup\]
160+
* If you're not sure whether a column is recognized as [ColumnGroup] or not, you can always call [asColumnGroup][asColumnGroup]
161161
* and it will return the same type if it is already a [ColumnGroup].
162162
*
163163
* NOTE: This does not check whether the column is actually a [ColumnGroup] or not. It just casts it.
@@ -166,9 +166,9 @@ public fun <T> ColumnGroup<T>.asDataFrame(): DataFrame<T> = this
166166
*
167167
* `df.`[select][DataFrame.select]` { `[first][ColumnsSelectionDsl.first]`().`[asColumnGroup][SingleColumn.asColumnGroup]`().`[firstCol][ColumnsSelectionDsl.firstCol]`() }`
168168
*
169-
* @receiver The column reference to cast to a [SingleColumn]`<`[DataRow][DataRow]`<`[C][C\]`>>`.
170-
* @param [C\] The type of the (group) column.
171-
* @return A [SingleColumn]`<`[DataRow][DataRow]`<`[C][C\]`>>`.
169+
* @receiver The column reference to cast to a [SingleColumn]`<`[DataRow][DataRow]`<`[C][C]`>>`.
170+
* @param [C] The type of the (group) column.
171+
* @return A [SingleColumn]`<`[DataRow][DataRow]`<`[C][C]`>>`.
172172
*/
173173
private interface SingleColumnAsColumnGroupDocs
174174

@@ -280,7 +280,7 @@ public enum class Infer {
280280
Type;
281281

282282
/**
283-
* @param [infer\] [An enum][Infer] that indicates how [DataColumn.type] should be calculated.
283+
* @param [infer] [An enum][Infer] that indicates how [DataColumn.type] should be calculated.
284284
* Either [None], [Nulls], or [Type].
285285
*/
286286
internal interface ParamDoc

0 commit comments

Comments
 (0)