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
Copy file name to clipboardExpand all lines: docs/syntax/applies-switch.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ The applies-switch directive creates tabbed content where each tab displays an a
9
9
10
10
::::{applies-switch}
11
11
12
-
:::{applies-item} stack:
12
+
:::{applies-item} stack: ga 9.0+
13
13
Content for Stack
14
14
:::
15
15
16
-
:::{applies-item} serverless:
16
+
:::{applies-item} serverless: ga
17
17
Content for Serverless
18
18
:::
19
19
@@ -25,11 +25,11 @@ Content for Serverless
25
25
```markdown
26
26
::::{applies-switch}
27
27
28
-
:::{applies-item} stack:
28
+
:::{applies-item} stack: ga 9.0+
29
29
Content for Stack
30
30
:::
31
31
32
-
:::{applies-item} serverless:
32
+
:::{applies-item} serverless: ga
33
33
Content for Serverless
34
34
:::
35
35
@@ -48,11 +48,11 @@ This is useful when content applies to multiple deployment types or versions sim
48
48
49
49
::::{applies-switch}
50
50
51
-
:::{applies-item} { ece:, ess: }
51
+
:::{applies-item} { ece: ga 4.0+, ess: ga }
52
52
Content for ECE and ECH
53
53
:::
54
54
55
-
:::{applies-item} serverless:
55
+
:::{applies-item} serverless: ga
56
56
Content for Serverless
57
57
:::
58
58
@@ -64,11 +64,11 @@ Content for Serverless
64
64
```markdown
65
65
::::{applies-switch}
66
66
67
-
:::{applies-item} { ece:, ess: }
67
+
:::{applies-item} { ece: ga 4.0+, ess: ga }
68
68
Content for ECE and ECH
69
69
:::
70
70
71
-
:::{applies-item} serverless:
71
+
:::{applies-item} serverless: ga
72
72
Content for Serverless
73
73
:::
74
74
@@ -81,28 +81,28 @@ Content for Serverless
81
81
82
82
All applies switches on a page automatically sync together. When you select an applies_to definition in one switch, all other switches will switch to the same applies_to definition.
83
83
84
-
The format of the applies_to definition doesn't matter - `stack: preview 9.1`, `{ "stack": "preview 9.1" }`, and `{ stack: "preview 9.1" }` all identify the same content and will sync together.
84
+
The format of the applies_to definition doesn't matter - `stack: ga 9.1+`, `{ "stack": "ga 9.1+" }`, and `{ stack: "ga 9.1+" }` all identify the same content and will sync together.
85
85
86
86
In the following example, both switch sets are automatically grouped and will stay in sync.
87
87
88
88
::::::{tab-set}
89
89
:::::{tab-item} Output
90
90
91
91
::::{applies-switch}
92
-
:::{applies-item} { "stack": "preview 9.0" }
93
-
Content for 9.0 version
92
+
:::{applies-item} { "stack": "ga 9.1+" }
93
+
Content for versions 9.1 and newer
94
94
:::
95
-
:::{applies-item} { "stack": "ga 9.1" }
96
-
Content for 9.1 version
95
+
:::{applies-item} { "stack": "preview =9.0" }
96
+
Content for version 9.0
97
97
:::
98
98
::::
99
99
100
100
::::{applies-switch}
101
-
:::{applies-item} stack: preview 9.0
102
-
Other content for 9.0 version
101
+
:::{applies-item} stack: ga 9.1+
102
+
Other content for versions 9.1 and newer
103
103
:::
104
-
:::{applies-item} stack: ga 9.1
105
-
Other content for 9.1 version
104
+
:::{applies-item} stack: preview =9.0
105
+
Other content for version 9.0
106
106
:::
107
107
::::
108
108
@@ -111,20 +111,20 @@ Other content for 9.1 version
0 commit comments