8000 [docs] Add Tabs List component to smoke test page. (#9097) · ArduinoBot/website@3fd4c6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fd4c6b

Browse files
jessestuartk8s-ci-robot
authored andcommitted
[docs] Add Tabs List component to smoke test page. (kubernetes#9097)
1 parent 2e23aa3 commit 3fd4c6b

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

content/en/docs/test.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ from Jekyll to Hugo, we broke some lists. To fix them, keep the following in
6262
mind:
6363

6464
- Make sure you indent sub-list items **4 spaces** rather than the 2 that you
65-
ma be yused to. Counter-intuitively, you need to indent block-level content
65+
may be used to. Counter-intuitively, you need to indent block-level content
6666
within a list item an extra 4 spaces too.
6767

6868
- To end a list and start another, you need a HTML comment block on a new line
@@ -92,9 +92,9 @@ mind:
9292
```bash
9393
ls -l
9494
```
95-
95+
9696
- And a sub-list after some block-level content
97-
97+
9898
- A bullet list item can contain a numbered list.
9999
1. Numbered sub-list item 1
100100
2. Numbered sub-list item 2
@@ -123,15 +123,49 @@ mind:
123123
```bash
124124
$ ls -l
125125
```
126-
126+
127127
- And a sub-list after some block-level content. This is at the same
128128
"level" as the paragraph and code block above, despite being indented
129129
more.
130130

131+
### Tab lists
132+
133+
Tab lists can be used to conditionally display content, e.g., when multiple
134+
options must be documented that require distinct instructions or context.
135+
136+
{{< tabs name="tab_lists_example" >}}
137+
{{% tab name="Choose one..." %}}
138+
Please select an option.
139+
{{% /tab %}}
140+
{{% tab name="Formatting tab lists" %}}
141+
142+
Tabs may also nest formatting styles.
143+
144+
1. Ordered
145+
1. (Or unordered)
146+
1. Lists
147+
148+
```bash
149+
$ echo 'Tab lists may contain code blocks!'
150+
```
151+
152+
{{% /tab %}}
153+
{{% tab name="Nested headers" %}}
154+
155+
### Header within a tab list
156+
157+
Nested header tags may also be included.
158+
159+
{{< warning >}}
160+
**Note**: Headers within tab lists will not appear in the Table of Contents.
161+
{{< /warning >}}
162+
163+
{{% /tab %}}
164+
{{< /tabs >}}
131165

132166
### Checklists
133167

134-
Checlists are technically bullet lists, but the bullets are suppressed by CSS.
168+
Checklists are technically bullet lists, but the bullets are suppressed by CSS.
135169

136170
- [ ] This is a checklist item
137171
- [x] This is a selected checklist item
@@ -151,7 +185,6 @@ This is due to
151185
[blackfriday issue #239](https://github.com/russross/blackfriday/issues/239).
152186
{{< /warning >}}
153187

154-
155188
```
156189
this is a code block created by back-ticks
157190
```
@@ -293,3 +326,4 @@ You can have multiple paragraphs and block-level elements inside an admonition.
293326
{{< warning >}}
294327
**Warning:** Warnings point out something that could cause harm if ignored.
295328
{{< /warning >}}
329+

0 commit comments

Comments
 (0)
0