Skip to content

Commit c36aa41

Browse files
committed
Use tabs in samples
- Use tabbing model from a new docs backend. - Relates #637
1 parent 6db122a commit c36aa41

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

spring-shell-docs/src/main/asciidoc/using-shell-options-short.adoc

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,42 @@ ifndef::snippets[:snippets: ../../test/java/org/springframework/shell/docs]
55
Short style _POSIX_ option is usually just a synonym to long format. As
66
shown below option `--arg` is equal to `-a`.
77

8-
[tabs]
9-
====
10-
Programmatic::
11-
+
12-
[source, java, indent=0]
8+
[source,java,indent=0,role="primary"]
9+
.Programmatic
1310
----
1411
include::{snippets}/ShortOptionSnippets.java[tag=option-type-string-programmatic]
1512
----
1613

17-
Annotation::
18-
+
19-
[source, java, indent=0]
14+
[source,java,indent=0,role="secondary"]
15+
.Annotation
2016
----
2117
include::{snippets}/ShortOptionSnippets.java[tag=option-type-string-annotation]
2218
----
2319

24-
Legacy Annotation::
25-
+
26-
[source, java, indent=0]
20+
[source,java,indent=0,role="secondary"]
21+
.Legacy Annotation
2722
----
2823
include::{snippets}/ShortOptionSnippets.java[tag=option-type-string-legacyannotation]
2924
----
30-
====
3125

3226
Short option with combined format is powerful if type is defined as a flag
3327
which means type is a _boolean_. That way you can define a presence of a flags
3428
as `-abc`, `-abc true` or `-abc false`.
3529

36-
[tabs]
37-
====
38-
Programmatic::
39-
+
40-
[source, java, indent=0]
30+
[source,java,indent=0,role="primary"]
31+
.Programmatic
4132
----
4233
include::{snippets}/ShortOptionSnippets.java[tag=option-type-multiple-booleans-programmatic]
4334
----
4435

45-
Annotation::
46-
+
47-
[source, java, indent=0]
36+
[source,java,indent=0,role="secondary"]
37+
.Annotation
4838
----
4939
include::{snippets}/ShortOptionSnippets.java[tag=option-type-multiple-booleans-annotation]
5040
----
5141

52-
Legacy Annotation::
53-
+
54-
[source, java, indent=0]
42+
[source,java,indent=0,role="secondary"]
43+
.Legacy Annotation
5544
----
5645
include::{snippets}/ShortOptionSnippets.java[tag=option-type-multiple-booleans-legacyannotation]
5746
----
58-
====

0 commit comments

Comments
 (0)