Migrate to Asciidoctor Tabs

This commit is contained in:
Rob Winch
2023-04-20 16:21:36 -05:00
committed by rstoyanchev
parent 71154fd16b
commit 39146f9066
243 changed files with 7124 additions and 1779 deletions

View File

@@ -10,8 +10,11 @@ do not have to extend base classes nor implement specific interfaces.
The following listing shows a basic example:
[tabs]
======
Java::
+
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
.Java
----
@RestController
public class HelloController {
@@ -22,8 +25,10 @@ The following listing shows a basic example:
}
}
----
Kotlin::
+
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
.Kotlin
----
@RestController
class HelloController {
@@ -32,6 +37,7 @@ The following listing shows a basic example:
fun handle() = "Hello WebFlux"
}
----
======
In the preceding example, the method returns a `String` to be written to the response body.