Skip to content

Commit 3d50da2

Browse files
authored
Enable Dokka docs generation (#11)
1 parent 36ac4f3 commit 3d50da2

File tree

7 files changed

+52
-0
lines changed

7 files changed

+52
-0
lines changed

build.gradle.kts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ version = run {
4545

4646
plugins {
4747
alias(libs.plugins.grazie)
48+
id("ai.kotlin.dokka")
4849
}
4950

5051
allprojects {
@@ -187,3 +188,32 @@ task("notifyAgentsReleaseToSlack") {
187188
}
188189
}
189190
}
191+
192+
dependencies {
193+
dokka(project(":agents:agents-core"))
194+
dokka(project(":agents:agents-features:agents-features-common"))
195+
dokka(project(":agents:agents-features:agents-features-memory"))
196+
dokka(project(":agents:agents-features:agents-features-trace"))
197+
dokka(project(":agents:agents-test"))
198+
dokka(project(":agents:agents-tools"))
199+
dokka(project(":embeddings:embeddings-base"))
200+
dokka(project(":embeddings:embeddings-local"))
201+
dokka(project(":prompt:prompt-agents"))
202+
dokka(project(":prompt:prompt-cache:prompt-cache-files"))
203+
dokka(project(":prompt:prompt-cache:prompt-cache-model"))
204+
dokka(project(":prompt:prompt-cache:prompt-cache-redis"))
205+
dokka(project(":prompt:prompt-executor:prompt-executor-cached"))
206+
dokka(project(":prompt:prompt-executor:prompt-executor-clients:prompt-executor-anthropic-client"))
207+
dokka(project(":prompt:prompt-executor:prompt-executor-clients:prompt-executor-openai-client"))
208+
dokka(project(":prompt:prompt-executor:prompt-executor-clients:prompt-executor-openrouter-client"))
209+
dokka(project(":prompt:prompt-executor:prompt-executor-llms"))
210+
dokka(project(":prompt:prompt-executor:prompt-executor-llms-all"))
211+
dokka(project(":prompt:prompt-executor:prompt-executor-model"))
212+
dokka(project(":prompt:prompt-executor:prompt-executor-ollama"))
213+
dokka(project(":prompt:prompt-executor:prompt-executor-tools"))
214+
dokka(project(":prompt:prompt-llm"))
215+
dokka(project(":prompt:prompt-markdown"))
216+
dokka(project(":prompt:prompt-model"))
217+
dokka(project(":prompt:prompt-structure"))
218+
dokka(project(":prompt:prompt-xml"))
219+
}

buildSrc/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88

99
dependencies {
1010
implementation(libs.kotlin.gradle.plugin)
11+
implementation(libs.dokka.gradle.plugin)
1112
}
1213

1314
kotlin {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import org.jetbrains.dokka.gradle.*
2+
3+
plugins {
4+
id("org.jetbrains.dokka")
5+
}
6+
7+
dokka {
8+
dokkaSourceSets.configureEach {
9+
sourceLink {
10+
localDirectory = rootDir
11+
remoteUrl("https://github.com/JetBrains/koan-agents/tree/main")
12+
remoteLineSuffix = "#L"
13+
}
14+
}
15+
}

buildSrc/src/main/kotlin/ai.kotlin.jvm.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import org.gradle.kotlin.dsl.support.uppercaseFirstChar
55
plugins {
66
kotlin("jvm")
77
id("ai.kotlin.configuration")
8+
id("ai.kotlin.dokka")
89
}
910

1011
for (testType in TestType.values()) {

buildSrc/src/main/kotlin/ai.kotlin.multiplatform.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
66
plugins {
77
kotlin("multiplatform")
88
id("ai.kotlin.configuration")
9+
id("ai.kotlin.dokka")
910
}
1011

1112
kotlin {

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ org.gradle.parallel=true
88

99
spaceUsername=
1010
spacePassword=
11+
12+
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ logback = "1.5.13"
1717
mockk = "1.13.8"
1818
shadow = "8.1.1"
1919
slf4j = "2.0.16"
20+
dokka = "2.0.0"
2021

2122
[libraries]
2223
ai-grazie-api-gateway-client = { module = "ai.grazie.api:api-gateway-client", version.ref = "grazie-platform" }
@@ -57,6 +58,7 @@ lettuce-core = { module = "io.lettuce:lettuce-core", version.ref = "lettuce" }
5758
logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
5859
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
5960
slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
61+
dokka-gradle-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" }
6062

6163
[plugins]
6264
compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

0 commit comments

Comments
 (0)