Skip to content

Commit 42ae807

Browse files
docs: document how to use tab blocks (#649)
* docs: document how to use tab blocks * Update modules/contributor/pages/docs/using-tab-blocks.adoc Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com> --------- Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
1 parent 3911375 commit 42ae807

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

modules/contributor/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
** xref:docs/contributing-documentation.adoc[]
1212
*** xref:docs/overview.adoc[]
1313
*** xref:docs/style-guide.adoc[]
14+
*** xref:docs/using-tab-blocks.adoc[]
1415
*** xref:docs/backporting-changes.adoc[]
1516
*** xref:docs/releasing-a-new-version.adoc[]
1617
*** xref:docs/troubleshooting-antora.adoc[]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
= Using tab blocks
2+
:asciidoctor-tabs-gh: https://github.com/asciidoctor/asciidoctor-tabs
3+
4+
The {asciidoctor-tabs-gh}[`asciidoctor/tabs`] extension is installed, so you can use tab blocks.
5+
An example can be found in the xref:management:stackablectl:installation.adoc[stackablectl installation instructions].
6+
7+
TIP: Be sure to use different block indicators nested admonition blocks so that they don't conflict with the tab blocks.
8+
9+
== Syntax example
10+
11+
[,asciidoc]
12+
----
13+
[tabs]
14+
====
15+
Tab A:: Contents of Tab A.
16+
17+
Tab B::
18+
+
19+
Contents of Tab B.
20+
21+
Tab C::
22+
+
23+
--
24+
Contents of Tab C.
25+
26+
Contains more than one block.
27+
--
28+
====
29+
----

0 commit comments

Comments
 (0)