Skip to content

Commit

Permalink
Fix dokka
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Jul 29, 2024
1 parent af33907 commit a455d36
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/documentation-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ jobs:
uses: kordlib/.teamcity/.github/workflows/documentation.yml@main
with:
main-branch: refs/heads/feature/mpp
multi-module: false
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest
import org.jetbrains.kotlin.konan.target.Family
import org.jetbrains.dokka.gradle.AbstractDokkaLeafTask

group = Library.group

plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kord.gradle.plugin)
alias(libs.plugins.maven.publish.plugin)
alias(libs.plugins.dokka)
dev.kord.x.emoji
}

Expand Down Expand Up @@ -53,6 +55,17 @@ tasks {
withType<KotlinNativeSimulatorTest> {
enabled = false
}

withType<AbstractDokkaLeafTask> {
dokkaSourceSets.configureEach {
sourceLink {
localDirectory = project.file("src/main/kotlin")
remoteUrl = project.uri("https://github.com/kordlib/kordx.emoji/tree/feature/mpp/src/$name/kotlin/").toURL()

remoteLineSuffix = "#L"
}
}
}
}

mavenPublishing {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref
kotlin-plugin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kord-gradle-plugin = { id = "dev.kord.gradle-tools", version = "1.6.2" }
maven-publish-plugin = { id = "com.vanniktech.maven.publish.base", version = "0.29.0" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }

0 comments on commit a455d36

Please sign in to comment.