Skip to content

Commit f7a92f2

Browse files
committed
Merge remote-tracking branch 'origin/master' into dev
2 parents 0c0648e + 6490707 commit f7a92f2

File tree

7 files changed

+25
-8
lines changed

7 files changed

+25
-8
lines changed

RELEASING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ If review is not required, commit directly to `dev`.
4141
* Close the repository and wait for it to verify.
4242
* Release it.
4343

44-
5. Update documentation website:<br>
45-
* Set new value for [`kotlinx.serialization.release.tag`](https://buildserver.labs.intellij.net/admin/editProject.html?projectId=Kotlin_KotlinSites_Builds_KotlinlangOrg_LibrariesAPIs&tab=projectParams)
46-
* And run deploy [configuration](https://buildserver.labs.intellij.net/buildConfiguration/Kotlin_KotlinSites_Builds_KotlinlangOrg_KotlinSerializationApi?branch=%3Cdefault%3E&mode=builds)
44+
5. Propose the website documentation update:<br>
45+
* Set a new value for [`KOTLINX_SERIALIZATION_RELEASE_TAG`](https://github.com/JetBrains/kotlin-web-site/blob/master/.teamcity/BuildParams.kt), creating a pull request in the website's repository.
46+
* The website team will be notified about the pull request, review your changes, and merge it to master after all checks pass.
47+
* Once the pull request is merged to the main branch, it automatically will trigger the website's update, which will be done within an hour.
4748

4849
6. Create a new release in [Github releases](https://github.com/Kotlin/kotlinx.serialization/releases). Use created git tag for title and changelog message for body.
4950

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,7 @@ subprojects {
188188
apply from: rootProject.file('gradle/compiler-version.gradle')
189189
apply from: rootProject.file("gradle/dokka.gradle")
190190
apply from: rootProject.file("gradle/benchmark-parsing.gradle")
191+
192+
tasks.named("dokkaHtmlMultiModule") {
193+
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase": """{ "templatesDir": "${projectDir.toString().replace('\\', '/')}/dokka-templates" }"""])
194+
}

core/commonMain/src/kotlinx/serialization/descriptors/SerialDescriptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ import kotlinx.serialization.encoding.*
116116
* SerialDescriptor("my.package.Data") {
117117
* // intField is deliberately ignored by serializer -- not present in the descriptor as well
118118
* element<Long>("_longField") // longField is named as _longField
119-
* element("stringField", listDescriptor<String>())
119+
* element("stringField", listSerialDescriptor<String>())
120120
* }
121121
* ```
122122
*

core/commonMain/src/kotlinx/serialization/descriptors/SerialDescriptors.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import kotlin.reflect.*
2727
* SerialDescriptor("my.package.Data") {
2828
* // intField is deliberately ignored by serializer -- not present in the descriptor as well
2929
* element<Long>("_longField") // longField is named as _longField
30-
* element("stringField", listDescriptor<String>())
31-
* element("nullableInt", descriptor<Int>().nullable)
30+
* element("stringField", listSerialDescriptor<String>())
31+
* element("nullableInt", serialDescriptor<Int>().nullable)
3232
* }
3333
* ```
3434
*

dokka-templates/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Dokka's template customization
2+
To provide unified navigation for all parts of [kotlinlang.org](https://kotlinlang.org/),
3+
the Kotlin Website Team uses this directory to place custom templates in this folder
4+
during the website build time on TeamCity.
5+
6+
It is not practical to place these templates in the kotlinx.serialization repository because they change from time to time
7+
and aren't related to the library's release cycle.
8+
9+
The folder is defined as a source for custom templates by the templatesDir property through Dokka's plugin configuration.
10+
11+
[Here](https://kotlin.github.io/dokka/1.7.20-SNAPSHOT/user_guide/output-formats/html/#custom-html-pages), you can
12+
find more about the customization of Dokka's HTML output.

formats/json-okio/commonMain/src/kotlinx/serialization/json/okio/OkioStreams.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public fun <T> Json.encodeToBufferedSink(
3838
/**
3939
* Serializes given [value] to a [target] using UTF-8 encoding and serializer retrieved from the reified type parameter.
4040
*
41-
* If [target] is not a [BufferedSink] then called [Sink.buffer] for it to create buffered wrapper.
42-
*
4341
* @throws [SerializationException] if the given value cannot be serialized to JSON.
4442
* @throws [okio.IOException] If an I/O error occurs and sink can't be written to.
4543
*/

gradle/dokka.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ subprojects {
2020

2121
tasks.named('dokkaHtmlPartial') {
2222
outputDirectory = file("build/dokka")
23+
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase": """{ "templatesDir": "${rootProject.projectDir.toString().replace('\\', '/')}/dokka-templates" }"""])
24+
2325
dokkaSourceSets {
2426
configureEach {
2527
includes.from(rootProject.file('dokka/moduledoc.md').path)

0 commit comments

Comments
 (0)