Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna712 authored Jan 17, 2025
1 parent 0f4287a commit 1c7b294
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 28 deletions.
9 changes: 4 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,19 @@ tasks.withType<KotlinJvmCompile> {
}

dokka {
moduleName.set("App")

moduleName = "App"
dokkaSourceSets {
main {
analysisPlatform.set(KotlinPlatform.JVM)
analysisPlatform = KotlinPlatform.JVM
documentedVisibilities(
VisibilityModifier.Public,
VisibilityModifier.Protected
)

sourceLink {
localDirectory.set(file(".."))
localDirectory = file("..")
remoteUrl("https://github.com/recloudstream/cloudstream/tree/master")
remoteLineSuffix.set("#L")
remoteLineSuffix = "#L"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ plugins {
}

dependencies {
dokka(project(":app"))
dokka(project(":library"))
dokka(project(":app:"))
dokka(project(":library:"))
}

dokka {
moduleName.set("Cloudstream")
moduleName = "Cloudstream"
}
24 changes: 4 additions & 20 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import org.jetbrains.dokka.gradle.engine.parameters.KotlinPlatform
import org.jetbrains.dokka.gradle.engine.parameters.VisibilityModifier
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import java.net.URI

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -92,34 +91,19 @@ publishing {
}

dokka {
moduleName.set("Library")
moduleName = "Library"
dokkaSourceSets {
configureEach {
analysisPlatform.set(KotlinPlatform.AndroidJVM)
analysisPlatform = KotlinPlatform.AndroidJVM
documentedVisibilities(
VisibilityModifier.Public,
VisibilityModifier.Protected
)

sourceLink {
localDirectory.set(file(".."))
localDirectory = file("..")
remoteUrl("https://github.com/recloudstream/cloudstream/tree/master")
remoteLineSuffix.set("#L")
}

externalDocumentationLinks {
register("com.fasterxml.jackson.core") {
url = URI("https://javadoc.io/doc/com.fasterxml.jackson.core/jackson-core/${libs.versions.jacksonModuleKotlin.get()}/")
packageListUrl = URI("https://javadoc.io/doc/com.fasterxml.jackson.core/jackson-core/${libs.versions.jacksonModuleKotlin.get()}/package-list")
}
register("okio") {
url = URI("https://square.github.io/okio/3.x/okio/")
packageListUrl = URI("https://square.github.io/okio/3.x/okio/okio/package-list")
}
register("okhttp") {
url = URI("https://square.github.io/okhttp/5.x/okhttp/okhttp3/")
packageListUrl = URI("https://square.github.io/okhttp/5.x/package-list")
}
remoteLineSuffix = "#L"
}
}
}
Expand Down

0 comments on commit 1c7b294

Please sign in to comment.