Skip to content

Commit 3504d34

Browse files
committed
format
1 parent 626aeb3 commit 3504d34

File tree

1 file changed

+200
-147
lines changed

1 file changed

+200
-147
lines changed

preview-src/asciidoc/tabsets.adoc

Lines changed: 200 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,227 @@
1111

1212
*Page source*: https://github.com/riptano/docs-ui/blob/main/preview-src/asciidoc/tabsets.adoc
1313

14-
[NOTE]
14+
[IMPORTANT]
1515
====
1616
Tabsets depend on the https://github.com/asciidoctor/asciidoctor-tabs[Asciidoctor Tabs] extension.
1717
1818
Tabs syncing is controlled by the `tabs-sync-option` attribute.
19-
For more information, see the Asciidoctor Tabs https://github.com/asciidoctor/asciidoctor-tabs#tabs-sync[documentation].
19+
For more information, see the https://github.com/asciidoctor/asciidoctor-tabs#tabs-sync[Asciidoctor Tabs documentation].
2020
====
2121

2222
== Basic tabset
2323

2424
[tabs]
2525
======
26-
Tab A:: Contents of Tab A.
26+
Tab A::
27+
+
28+
--
29+
Contents of Tab A.
30+
--
2731
2832
Tab B::
2933
+
34+
--
3035
Contents of Tab B.
36+
--
3137
3238
Tab C::
3339
+
3440
--
3541
Contents of Tab C.
3642
37-
Contains more than one block.
43+
Second line in Tab C.
44+
--
45+
======
46+
47+
48+
== Tabset w/ code blocks
49+
50+
.Tabset w/ codeblock and collapsible response
51+
[tabs]
52+
======
53+
Command::
54+
+
55+
--
56+
[source,curl]
57+
----
58+
curl -s -L -X GET https://$ASTRA_CLUSTER_ID-$ASTRA_REGION.apps.astra.datastax.com/api/rest/v2/schemas/keyspaces/users_keyspace \
59+
-H "X-Cassandra-Token: $ASTRA_DB_APPLICATION_TOKEN" \
60+
-H "Content-Type: application/json" \
61+
-H "Accept: application/json"
62+
----
63+
64+
.Result
65+
[%collapsible]
66+
====
67+
[source,console]
68+
----
69+
{"data":{"name":"users_keyspace"}}
70+
----
71+
====
72+
--
73+
74+
Other Command::
75+
+
76+
--
77+
[source,curl]
78+
----
79+
curl -s -L -X GET https://$ASTRA_CLUSTER_ID-$ASTRA_REGION.apps.astra.datastax.com/api/rest/v2/schemas/keyspaces/users_keyspace \
80+
-H "X-Cassandra-Token: $ASTRA_DB_APPLICATION_TOKEN" \
81+
-H "Content-Type: application/json" \
82+
-H "Accept: application/json"
83+
----
84+
85+
.Result
86+
[%collapsible]
87+
====
88+
[source,console]
89+
----
90+
{"data":{"name":"users_keyspace"}}
91+
----
92+
====
93+
--
94+
======
95+
96+
.Tabset w/ only codeblocks
97+
[tabs]
98+
======
99+
Command::
100+
+
101+
--
102+
[source,curl]
103+
----
104+
curl -s -L -X GET https://$ASTRA_CLUSTER_ID-$ASTRA_REGION.apps.astra.datastax.com/api/rest/v2/schemas/keyspaces/users_keyspace \
105+
-H "X-Cassandra-Token: $ASTRA_DB_APPLICATION_TOKEN" \
106+
-H "Content-Type: application/json" \
107+
-H "Accept: application/json"
108+
----
109+
--
110+
111+
Other Command::
112+
+
113+
--
114+
[source,curl]
115+
----
116+
curl -s -L -X GET https://$ASTRA_CLUSTER_ID-$ASTRA_REGION.apps.astra.datastax.com/api/rest/v2/schemas/keyspaces/users_keyspace \
117+
-H "X-Cassandra-Token: $ASTRA_DB_APPLICATION_TOKEN" \
118+
-H "Content-Type: application/json" \
119+
-H "Accept: application/json"
120+
----
121+
--
122+
======
123+
124+
=== Complex tabset w/ nested tabsets
125+
126+
[tabs]
127+
======
128+
Tarball::
129+
+
130+
--
131+
. If you haven't already, start by downloading the Cassandra binary tarball.
132+
For example, to download Cassandra 4.1.2:
133+
+
134+
[tabs]
135+
=====
136+
cURL::
137+
+
138+
[source,shell]
139+
----
140+
curl -OL https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz
141+
----
142+
143+
Wget::
144+
+
145+
[source,shell]
146+
----
147+
wget https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz
148+
----
149+
=====
150+
+
151+
[TIP]
152+
====
153+
To download a different version of Cassandra, visit the https://archive.apache.org/dist/cassandra/[Apache Archives].
154+
====
155+
156+
. Optional: Verify the integrity of the downloaded tarball using one of the methods https://www.apache.org/dyn/closer.cgi#verify[here].
157+
+
158+
.. For example, to verify the SHA256 hash of the downloaded file using GPG:
159+
+
160+
[source,shell]
161+
----
162+
gpg --print-md SHA256 apache-cassandra-4.1.2-bin.tar.gz
163+
----
164+
165+
.. Compare the output with the contents of the SHA256 file:
166+
+
167+
[source,shell]
168+
----
169+
curl -L https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz.sha256
170+
----
171+
--
172+
173+
Debian::
174+
+
175+
--
176+
. Instructions for Debian-based systems.
177+
+
178+
.. For example, to verify the SHA256 hash of the downloaded file using GPG:
179+
+
180+
[tabs]
181+
=====
182+
cURL::
183+
+
184+
[source,shell]
185+
----
186+
curl -OL https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz
187+
----
188+
189+
Wget::
190+
+
191+
[source,shell]
192+
----
193+
wget https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz
194+
----
195+
=====
196+
197+
.. Compare the output with the contents of the SHA256 file:
198+
+
199+
[tabs]
200+
=====
201+
cURL::
202+
+
203+
[source,shell]
204+
----
205+
curl -L https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz.sha256
206+
----
207+
208+
Wget::
209+
+
210+
[source,shell]
211+
----
212+
wget --quiet -O - https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz.sha256
213+
----
214+
215+
Third subtab::
216+
+
217+
[source,console]
218+
----
219+
7ce3103a76b8af76ffd8488d6bf484e1f175119617f3205ae0526c71d816c6f7
220+
----
221+
=====
222+
--
223+
224+
CentOS::
225+
+
226+
--
227+
Just text.
38228
--
39229
======
40230

231+
== Tab title rendering
232+
233+
These tabsets demonstrate the rendering for horizontal scrolling on tabs, as well as an experimental (unused) icon feature.
234+
41235
.Tabset w/ overflow tab titles (default)
42236
[tabs]
43237
======
@@ -60,8 +254,7 @@ Another Tab Name::
60254
Contents of Another Tab.
61255
======
62256

63-
== Experimental: Tabset w/ wrapping tab titles
64-
257+
.Tabset w/ wrapping tab titles (experimental)
65258
[tabs.wrapping]
66259
======
67260
Tab Name:: Contents of Tab.
@@ -83,7 +276,7 @@ Another Tab Name::
83276
Contents of Another Tab.
84277
======
85278

86-
== Experimental: Tabset icons
279+
.Tabset icons (experimental)
87280

88281
[tabs]
89282
======
@@ -174,143 +367,3 @@ curl -s --location \
174367
}'
175368
----
176369
======
177-
178-
== Examples
179-
180-
=== Tabset w/ only code blocks
181-
182-
[tabs]
183-
======
184-
Command::
185-
+
186-
[source,curl]
187-
----
188-
curl -s -L -X GET https://$ASTRA_CLUSTER_ID-$ASTRA_REGION.apps.astra.datastax.com/api/rest/v2/schemas/keyspaces/users_keyspace \
189-
-H "X-Cassandra-Token: $ASTRA_DB_APPLICATION_TOKEN" \
190-
-H "Content-Type: application/json" \
191-
-H "Accept: application/json"
192-
----
193-
194-
Result::
195-
+
196-
[source,console]
197-
----
198-
{"data":{"name":"users_keyspace"}}
199-
----
200-
======
201-
202-
=== Complex tabset w/ nested tabsets
203-
204-
[tabs]
205-
======
206-
Tarball::
207-
+
208-
. If you haven't already, start by downloading the Cassandra binary tarball.
209-
For example, to download Cassandra 4.1.2:
210-
+
211-
[tabs]
212-
====
213-
cURL::
214-
+
215-
--
216-
[source,shell]
217-
----
218-
curl -OL https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz
219-
----
220-
--
221-
222-
Wget::
223-
+
224-
--
225-
[source,shell]
226-
----
227-
wget https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz
228-
----
229-
--
230-
====
231-
+
232-
[NOTE]
233-
====
234-
To download a different version of Cassandra, visit the https://archive.apache.org/dist/cassandra/[Apache Archives].
235-
====
236-
+
237-
. (Optional) Verify the integrity of the downloaded tarball using one of the methods https://www.apache.org/dyn/closer.cgi#verify[here].
238-
+
239-
.. For example, to verify the SHA256 hash of the downloaded file using GPG:
240-
+
241-
[source,shell]
242-
----
243-
gpg --print-md SHA256 apache-cassandra-4.1.2-bin.tar.gz
244-
----
245-
+
246-
.. Compare the output with the contents of the SHA256 file:
247-
+
248-
[source,shell]
249-
----
250-
curl -L https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz.sha256
251-
----
252-
253-
Debian::
254-
+
255-
. (Optional) Verify the integrity of the downloaded tarball using one of the methods https://www.apache.org/dyn/closer.cgi#verify[here].
256-
+
257-
.. For example, to verify the SHA256 hash of the downloaded file using GPG:
258-
+
259-
[tabs]
260-
====
261-
Command::
262-
+
263-
--
264-
[source,shell]
265-
----
266-
gpg --print-md SHA256 apache-cassandra-4.1.2-bin.tar.gz
267-
----
268-
--
269-
270-
Result::
271-
+
272-
--
273-
[source,console]
274-
----
275-
apache-cassandra-4.1.2-bin.tar.gz: 7CE3103A 76B8AF76 FFD8488D 6BF484E1 F1751196
276-
17F3205A E0526C71 D816C6F7
277-
----
278-
--
279-
====
280-
+
281-
.. Compare the output with the contents of the SHA256 file:
282-
+
283-
[tabs]
284-
====
285-
cURL::
286-
+
287-
--
288-
[source,shell]
289-
----
290-
curl -L https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz.sha256
291-
----
292-
--
293-
294-
Wget::
295-
+
296-
--
297-
[source,shell]
298-
----
299-
wget --quiet -O - https://archive.apache.org/dist/cassandra/4.1.2/apache-cassandra-4.1.2-bin.tar.gz.sha256
300-
----
301-
--
302-
303-
Result::
304-
+
305-
--
306-
[source,console]
307-
----
308-
7ce3103a76b8af76ffd8488d6bf484e1f175119617f3205ae0526c71d816c6f7
309-
----
310-
--
311-
====
312-
313-
CentOS:: Just text.
314-
======
315-
316-

0 commit comments

Comments
 (0)