Skip to content

Commit 8b9225a

Browse files
committed
Improved API documentation
1 parent 6207eea commit 8b9225a

5 files changed

Lines changed: 29 additions & 4 deletions

File tree

  • .github/workflows
  • typedrest-serializers-jackson/src/main/kotlin/net/typedrest/serializers
  • typedrest-serializers-moshi/src/main/kotlin/net/typedrest/serializers
  • typedrest/src/main/kotlin/net/typedrest

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
# Build
2525
- run: gradle build
26-
- run: gradle dokkaHtml
26+
- run: gradle dokkaHtmlMultiModule
2727
- run: gradle test
2828
- name: Report test results
2929
if: always()
@@ -58,5 +58,5 @@ jobs:
5858
with:
5959
github_token: ${{github.token}}
6060
force_orphan: true
61-
publish_dir: build/dokka/html
61+
publish_dir: build/dokka/htmlMultiModule
6262
cname: java.typedrest.net

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
repositories.mavenCentral()
1+
import org.jetbrains.dokka.gradle.*
2+
3+
repositories.mavenCentral()
24

35
plugins {
46
kotlin("jvm") version "2.0.0"
57
kotlin("plugin.serialization") version "2.0.0" apply false
6-
id("org.jetbrains.dokka") version "1.9.20" apply false
8+
id("org.jetbrains.dokka") version "1.9.20"
79
}
810

911
subprojects {
@@ -20,4 +22,10 @@ subprojects {
2022
kotlin {
2123
compilerOptions.allWarningsAsErrors = true
2224
}
25+
26+
fun NamedDomainObjectContainer<GradleDokkaSourceSetBuilder>.addMarkdown() = configureEach {
27+
includes.from(project.files(), fileTree("src/main/kotlin").include("**/_doc.md"))
28+
}
29+
tasks.withType<DokkaTask>().configureEach { dokkaSourceSets.addMarkdown() }
30+
tasks.withType<DokkaTaskPartial>().configureEach { dokkaSourceSets.addMarkdown() }
2331
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Module typedrest-serializers-jackson
2+
3+
Adds support for serializing using [Jackson](https://github.com/FasterXML/jackson) instead of [kotlinx.serialization](https://kotlinlang.org/docs/serialization.html).
4+
5+
Pass [JacksonJsonSerializer](net.typedrest.serializers.JacksonJsonSerializer) to the [EntryEndpoint](net.typedrest.endpoints.EntryEndpoint) constructor.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Module typedrest-serializers-moshi
2+
3+
Adds support for serializing using [Moshi](https://github.com/square/moshi) instead of [kotlinx.serialization](https://kotlinlang.org/docs/serialization.html).
4+
5+
Pass [MoshiJsonSerializer](net.typedrest.serializers.MoshiJsonSerializer) to the [EntryEndpoint](net.typedrest.endpoints.EntryEndpoint) constructor.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Module typedrest
2+
3+
The main TypedRest library.
4+
5+
# Package net.typedrest
6+
7+
Common helpers and extensions.

0 commit comments

Comments
 (0)