From 69a5aa5b588800986aa6694297af5516a3551fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 24 May 2023 00:13:40 +0200 Subject: [PATCH] docs: clarifications for tabs #538 --- exampleSite/content/shortcodes/tab.en.md | 2 ++ exampleSite/content/shortcodes/tabs.en.md | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/shortcodes/tab.en.md b/exampleSite/content/shortcodes/tab.en.md index f7963b156c..8a4ed975e1 100644 --- a/exampleSite/content/shortcodes/tab.en.md +++ b/exampleSite/content/shortcodes/tab.en.md @@ -7,6 +7,8 @@ You can use a `tab` shortcode to display a single tab. This is especially useful if you want to flag your code example with an explicit language. +If you want multiple tabs grouped together you can wrap your tabs into the [`tabs` shortcode]({{% relref "shortcodes/tabs" %}}). + {{% tab name="c" %}} ```python diff --git a/exampleSite/content/shortcodes/tabs.en.md b/exampleSite/content/shortcodes/tabs.en.md index 34d91f639c..8046c47548 100644 --- a/exampleSite/content/shortcodes/tabs.en.md +++ b/exampleSite/content/shortcodes/tabs.en.md @@ -7,7 +7,7 @@ The `tabs` shortcode displays arbitrary content in an unlimited number of tabs. This comes in handy eg. for providing code snippets for multiple languages. -If you only want a single tab in your group, you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone. +If you just want a single tab you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone. {{< tabs >}} {{% tab name="python" %}} @@ -30,6 +30,8 @@ echo "Hello World!" While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials. +See the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) for a description of the parameter for nested tabs. + {{< tabs groupid="shortcode-parameter">}} {{% tab name="shortcode" %}}