Skip to content

Commit a76f47e

Browse files
committed
try to ignore *Adapter classes in dokka
1 parent b5637fd commit a76f47e

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ repositories {
2121
mavenLocal()
2222
}
2323

24+
dokka {
25+
dokkaSourceSets {
26+
named("main") {
27+
perPackageOption {
28+
matchingRegex = ".*Adapter$"
29+
suppress = true
30+
}
31+
}
32+
}
33+
}
34+
2435
dependencies {
2536
// kotlinx
2637
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")

src/main/kotlin/tech/aliorpse/mcutils/model/modrinth/ModrinthSearchResult.kt renamed to src/main/kotlin/tech/aliorpse/mcutils/model/modrinth/ModrinthProject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.squareup.moshi.JsonClass
44
import com.squareup.moshi.Json
55

66
@JsonClass(generateAdapter = true)
7-
data class ModrinthSearchResult(
7+
data class ModrinthProject(
88
val slug: String,
99
val title: String,
1010
val description: String,

src/main/kotlin/tech/aliorpse/mcutils/model/modrinth/ModrinthSearchResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.squareup.moshi.JsonClass
55

66
@JsonClass(generateAdapter = true)
77
internal data class ModrinthSearchResponse(
8-
val hits: List<ModrinthSearchResult>,
8+
val hits: List<ModrinthProject>,
99
@field:Json(name = "offset") val offset: Int,
1010
@field:Json(name = "limit") val limit: Int,
1111
@field:Json(name = "total_hits") val totalHits: Int

0 commit comments

Comments
 (0)