You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute.
Copy file name to clipboardExpand all lines: src/docs/asciidoc/languages/kotlin.adoc
+10-10
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,8 @@ Kotlin https://kotlinlang.org/docs/reference/extensions.html[extensions] provide
42
42
to extend existing classes with additional functionality. The Spring Framework Kotlin APIs
43
43
use these extensions to add new Kotlin-specific conveniences to existing Spring APIs.
44
44
45
-
The {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/[Spring Framework KDoc API] lists
46
-
and documents all available the Kotlin extensions and DSLs.
45
+
The {docs-spring-framework}/kdoc-api/spring-framework/[Spring Framework KDoc API] lists
46
+
and documents all available Kotlin extensions and DSLs.
47
47
48
48
NOTE: Keep in mind that Kotlin extensions need to be imported to be used. This means,
49
49
for example, that the `GenericApplicationContext.registerBean` Kotlin extension
@@ -209,7 +209,7 @@ the constructor parameters will be autowired by type:
209
209
----
210
210
211
211
In order to allow a more declarative approach and cleaner syntax, Spring Framework provides
212
-
a {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.context.support/-bean-definition-dsl/[Kotlin bean definition DSL]
212
+
a {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.context.support/-bean-definition-dsl/[Kotlin bean definition DSL]
213
213
It declares an `ApplicationContextInitializer` through a clean declarative API,
214
214
which lets you deal with profiles and `Environment` for customizing
215
215
how beans are registered.
@@ -275,9 +275,9 @@ for more details and up-to-date information. See also the experimental Kofu DSL
275
275
276
276
Spring Framework comes with a Kotlin router DSL available in 3 flavors:
277
277
278
-
* WebMvc.fn DSL with {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.servlet.function/router.html[router { }]
279
-
* WebFlux.fn <<web-reactive#webflux-fn, Reactive>> DSL with {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/router.html[router { }]
280
-
* WebFlux.fn <<Coroutines>> DSL with {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/co-router.html[coRouter { }]
278
+
* WebMvc.fn DSL with {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.web.servlet.function/router.html[router { }]
279
+
* WebFlux.fn <<web-reactive#webflux-fn, Reactive>> DSL with {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/router.html[router { }]
280
+
* WebFlux.fn <<Coroutines>> DSL with {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/co-router.html[coRouter { }]
281
281
282
282
These DSL let you write clean and idiomatic Kotlin code to build a `RouterFunction` instance as the following example shows:
283
283
@@ -408,10 +408,10 @@ Spring Framework provides support for Coroutines on the following scope:
408
408
409
409
* https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-deferred/index.html[Deferred] and https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html[Flow] return values support in Spring MVC and WebFlux annotated `@Controller`
410
410
* Suspending function support in Spring MVC and WebFlux annotated `@Controller`
411
-
* Extensions for WebFlux {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.reactive.function.client/index.html[client] and {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/index.html[server] functional API.
* Extensions for WebFlux {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.web.reactive.function.client/index.html[client] and {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/index.html[server] functional API.
* Suspending function and `Flow` support in RSocket `@MessageMapping` annotated methods
414
-
* Extensions for {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.messaging.rsocket/index.html[`RSocketRequester`]
414
+
* Extensions for {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.messaging.rsocket/index.html[`RSocketRequester`]
415
415
416
416
=== Dependencies
417
417
@@ -554,7 +554,7 @@ class CoroutinesViewController(banner: Banner) {
554
554
555
555
=== WebFlux.fn
556
556
557
-
Here is an example of Coroutines router defined via the {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/co-router.html[coRouter { }] DSL and related handlers.
557
+
Here is an example of Coroutines router defined via the {docs-spring-framework}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/co-router.html[coRouter { }] DSL and related handlers.
0 commit comments