docs: remove tabs deprecation warning #550

This commit is contained in:
Sören Weber 2023-06-05 23:20:37 +02:00
parent d68a80d1d4
commit 84a884e353
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
16 changed files with 81 additions and 81 deletions

View file

@ -16,14 +16,14 @@ Since Hugo {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.112
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* attachments sort="asc" /*/%}}
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/attachments.html" (dict

View file

@ -16,7 +16,7 @@ The `badge` shortcode displays little markers in your text with adjustable color
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* badge %}}Important{{% /badge */%}}
@ -27,7 +27,7 @@ While the examples are using shortcodes with named parameter you are free to als
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/badge.html" (dict

View file

@ -13,7 +13,7 @@ The `button` shortcode displays a clickable button with adjustable color, title
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* button href="https://gohugo.io/" %}}Get Hugo{{% /button */%}}
@ -21,7 +21,7 @@ While the examples are using shortcodes with named parameter you are free to als
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/button.html" (dict

View file

@ -13,14 +13,14 @@ The `children` shortcode lists the child pages of the current page and its desce
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* children sort="weight" */%}}
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/children.html" (dict

View file

@ -28,21 +28,21 @@ This only works in modern browsers flawlessly. While Internet Explorer 11 has is
While the examples are using shortcodes with named parameter you are free to use positional as well or also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* expand title="Expand me..." */%}}Thank you!{{%/* /expand */%}}
````
{{% /tab %}}
{{% tab name="shortcode (positional)" %}}
{{% tab title="shortcode (positional)" %}}
````go
{{%/* expand "Expand me..." */%}}Thank you!{{%/* /expand */%}}
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/expand.html" (dict

View file

@ -15,7 +15,7 @@ The `icon` shortcode displays icons using the [Font Awesome](https://fontawesome
While the examples are using shortcodes with positional parameter you are free to also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* icon icon="exclamation-triangle" */%}}
@ -24,7 +24,7 @@ While the examples are using shortcodes with positional parameter you are free t
````
{{% /tab %}}
{{% tab name="shortcode (positional)" %}}
{{% tab title="shortcode (positional)" %}}
````go
{{%/* icon exclamation-triangle */%}}
@ -33,7 +33,7 @@ While the examples are using shortcodes with positional parameter you are free t
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/icon.html" (dict

View file

@ -10,21 +10,21 @@ The `include` shortcode includes other files from your project inside of the cur
While the examples are using shortcodes with named parameter you are free to use positional aswell or also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* include file="shortcodes/INCLUDE_ME.md" */%}}
````
{{% /tab %}}
{{% tab name="shortcode (positional)" %}}
{{% tab title="shortcode (positional)" %}}
````go
{{%/* include "shortcodes/INCLUDE_ME.md" */%}}
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/include .html" (dict

View file

@ -24,7 +24,7 @@ To use codefence syntax you have to turn off `guessSyntax` for the `markup.highl
{{% /notice %}}
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="codefence" %}}
{{% tab title="codefence" %}}
````md
```math { align="center" }
@ -33,7 +33,7 @@ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \
````
{{% /tab %}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{</* math align="center" */>}}
@ -42,7 +42,7 @@ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/math.html" (dict

View file

@ -30,7 +30,7 @@ To use codefence syntax you have to turn off `guessSyntax` for the `markup.highl
{{% /notice %}}
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="codefence" %}}
{{% tab title="codefence" %}}
````md
```mermaid { align="center" zoom="true" }
@ -41,7 +41,7 @@ graph LR;
````
{{% /tab %}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{</* mermaid align="center" zoom="true" */>}}
@ -52,7 +52,7 @@ graph LR;
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/mermaid.html" (dict

View file

@ -14,7 +14,7 @@ It is all about the boxes.
While the examples are using shortcodes with named parameter you are free to use positional as well or also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* notice style="primary" title="There may be pirates" icon="skull-crossbones" */%}}
@ -23,7 +23,7 @@ It is all about the boxes.
````
{{% /tab %}}
{{% tab name="shortcode (positional)" %}}
{{% tab title="shortcode (positional)" %}}
````go
{{%/* notice primary "There may be pirates" "skull-crossbones" */%}}
@ -32,7 +32,7 @@ It is all about the boxes.
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/notice.html" (dict

View file

@ -14,14 +14,14 @@ This only works in modern browsers.
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{</* openapi src="https://petstore3.openapi.io/api/v3/openapi.json" */>}}
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/openapi.html" (dict

View file

@ -10,7 +10,7 @@ The `siteparam` shortcode prints values of site params.
While the examples are using shortcodes with named parameter you are free to use positional aswell or call this shortcode from your own partials.
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
@ -18,14 +18,14 @@ While the examples are using shortcodes with named parameter you are free to use
````
{{% /tab %}}
{{% tab name="shortcode (positional)" %}}
{{% tab title="shortcode (positional)" %}}
````go
{{%/* siteparam "editURL" */%}}
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/siteparam.html" (dict

View file

@ -9,7 +9,7 @@ This is especially useful if you want to flag your code example with an explicit
If you want multiple tabs grouped together you can wrap your tabs into the [`tabs` shortcode]({{% relref "shortcodes/tabs" %}}).
{{% tab name="c" %}}
{{% tab title="c" %}}
```python
printf("Hello World!");
@ -22,10 +22,10 @@ printf("Hello World!");
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
{{< tabs groupid="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{%/* tab name="c" */%}}
{{%/* tab title="c" */%}}
```c
printf("Hello World!");
```
@ -33,12 +33,12 @@ printf("Hello World!");
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/tab.html" (dict
"context" .
"name" "c"
"title" "c"
"content" ("```c\nprintf(\"Hello World!\")\n```" | .RenderString)
)}}
````
@ -57,7 +57,7 @@ printf("Hello World!");
### Code with collapsed margins
{{% tab name="Code" %}}
{{% tab title="Code" %}}
```python
printf("Hello World!");
@ -67,7 +67,7 @@ printf("Hello World!");
### Mixed content
{{% tab name="_**Mixed**_" %}}
{{% tab title="_**Mixed**_" %}}
A tab can not only contain code but arbitrary text. In this case text and code will get a margin.

View file

@ -10,14 +10,14 @@ This comes in handy eg. for providing code snippets for multiple languages.
If you just want a single tab you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone.
{{< tabs >}}
{{% tab name="python" %}}
{{% tab title="python" %}}
```python
print("Hello World!")
```
{{% /tab %}}
{{% tab name="bash" %}}
{{% tab title="bash" %}}
```bash
echo "Hello World!"
@ -33,16 +33,16 @@ While the examples are using shortcodes with named parameter you are free to als
See the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) for a description of the parameter for nested tabs.
{{< tabs groupid="shortcode-parameter">}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}
````go
{{</* tabs */>}}
{{%/* tab name="python" */%}}
{{%/* tab title="python" */%}}
```python
print("Hello World!")
```
{{%/* /tab */%}}
{{%/* tab name="bash" */%}}
{{%/* tab title="bash" */%}}
```bash
echo "Hello World!"
```
@ -51,18 +51,18 @@ echo "Hello World!"
````
{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}
````go
{{ partial "shortcodes/tabs.html" (dict
"context" .
"content" (slice
(dict
"name" "python"
"title" "python"
"content" ("```python\nprint(\"Hello World!\")\n```" | .RenderString)
)
(dict
"name" "bash"
"title" "bash"
"content" ("```bash\necho \"Hello World!\"\n```" | .RenderString)
)
)
@ -88,20 +88,20 @@ See what happens to the tab views while you select different tabs.
While pressing a tab of group A switches all tab views of group A in sync (if the tab is available), the tabs of group B are left untouched.
{{< tabs >}}
{{% tab name="Group A, Tab View 1" %}}
{{% tab title="Group A, Tab View 1" %}}
````go
{{</* tabs groupid="a" */>}}
{{%/* tab name="json" */%}}
{{%/* tab title="json" */%}}
```json
{ "Hello": "World" }
```
{{%/* /tab */%}}
{{%/* tab name="_**XML**_ stuff" */%}}
{{%/* tab title="_**XML**_ stuff" */%}}
```xml
<Hello>World</Hello>
```
{{%/* /tab */%}}
{{%/* tab name="properties" */%}}
{{%/* tab title="properties" */%}}
```properties
Hello = World
```
@ -109,15 +109,15 @@ Hello = World
{{</* /tabs */>}}
````
{{% /tab %}}
{{% tab name="Group A, Tab View 2" %}}
{{% tab title="Group A, Tab View 2" %}}
````go
{{</* tabs groupid="a" */>}}
{{%/* tab name="json" */%}}
{{%/* tab title="json" */%}}
```json
{ "Hello": "World" }
```
{{%/* /tab */%}}
{{%/* tab name="XML stuff" */%}}
{{%/* tab title="XML stuff" */%}}
```xml
<Hello>World</Hello>
```
@ -125,15 +125,15 @@ Hello = World
{{</* /tabs */>}}
````
{{% /tab %}}
{{% tab name="Group B" %}}
{{% tab title="Group B" %}}
````go
{{</* tabs groupid="b" */>}}
{{%/* tab name="json" */%}}
{{%/* tab title="json" */%}}
```json
{ "Hello": "World" }
```
{{%/* /tab */%}}
{{%/* tab name="XML stuff" */%}}
{{%/* tab title="XML stuff" */%}}
```xml
<Hello>World</Hello>
```
@ -147,17 +147,17 @@ Hello = World
#### Group A, Tab View 1
{{< tabs groupid="tab-example-a" >}}
{{% tab name="json" %}}
{{% tab title="json" %}}
```json
{ "Hello": "World" }
```
{{% /tab %}}
{{% tab name="_**XML**_ stuff" %}}
{{% tab title="_**XML**_ stuff" %}}
```xml
<Hello>World</Hello>
```
{{% /tab %}}
{{% tab name="properties" %}}
{{% tab title="properties" %}}
```ini
Hello = World
```
@ -167,12 +167,12 @@ Hello = World
#### Group A, Tab View 2
{{< tabs groupid="tab-example-a" >}}
{{% tab name="json" %}}
{{% tab title="json" %}}
```json
{ "Hello": "World" }
```
{{% /tab %}}
{{% tab name="XML stuff" %}}
{{% tab title="XML stuff" %}}
```xml
<Hello>World</Hello>
```
@ -182,12 +182,12 @@ Hello = World
#### Group B
{{< tabs groupid="tab-example-b" >}}
{{% tab name="json" %}}
{{% tab title="json" %}}
```json
{ "Hello": "World" }
```
{{% /tab %}}
{{% tab name="XML stuff" %}}
{{% tab title="XML stuff" %}}
```xml
<Hello>World</Hello>
```
@ -200,30 +200,30 @@ In case you want to nest tabs, the parent tab that contains the subtabs needs to
````go
{{</* tabs groupid="main" */>}}
{{</* tab name="Text" */>}}
{{</* tab title="Text" */>}}
Simple text is possible here...
{{</* tabs groupid="tabs-example-language" */>}}
{{%/* tab name="python" */%}}
{{%/* tab title="python" */%}}
Python is **super** easy.
- most of the time.
- if you don't want to output unicode
{{%/* /tab */%}}
{{%/* tab name="bash" */%}}
{{%/* tab title="bash" */%}}
Bash is for **hackers**.
{{%/* /tab */%}}
{{</* /tabs */>}}
{{</* /tab */>}}
{{</* tab name="Code" */>}}
{{</* tab title="Code" */>}}
...but no markdown
{{</* tabs groupid="tabs-example-language" */>}}
{{%/* tab name="python" */%}}
{{%/* tab title="python" */%}}
```python
print("Hello World!")
```
{{%/* /tab */%}}
{{%/* tab name="bash" */%}}
{{%/* tab title="bash" */%}}
```bash
echo "Hello World!"
```
@ -234,30 +234,30 @@ In case you want to nest tabs, the parent tab that contains the subtabs needs to
````
{{< tabs groupid="main" >}}
{{< tab name="Text" >}}
{{< tab title="Text" >}}
Simple text is possible here...
{{< tabs groupid="tabs-example-language" >}}
{{% tab name="python" %}}
{{% tab title="python" %}}
Python is **super** easy.
- most of the time.
- if you don't want to output unicode
{{% /tab %}}
{{% tab name="bash" %}}
{{% tab title="bash" %}}
Bash is for **hackers**.
{{% /tab %}}
{{< /tabs >}}
{{< /tab >}}
{{< tab name="Code" >}}
{{< tab title="Code" >}}
...but no markdown
{{< tabs groupid="tabs-example-language" >}}
{{% tab name="python" %}}
{{% tab title="python" %}}
```python
print("Hello World!")
```
{{% /tab %}}
{{% tab name="bash" %}}
{{% tab title="bash" %}}
```bash
echo "Hello World!"
```

View file

@ -144,12 +144,12 @@ title = "Lists"
- one
- two
- {{< tabs >}}
{{% tab name="python" %}}
{{% tab title="python" %}}
```python
print("Hello World!")
```
{{% /tab %}}
{{% tab name="bash" %}}
{{% tab title="bash" %}}
```bash
echo "Hello World!"
```
@ -157,12 +157,12 @@ title = "Lists"
{{< /tabs >}}
{{< tabs >}}
{{% tab name="python" %}}
{{% tab title="python" %}}
```python
print("Hello World!")
```
{{% /tab %}}
{{% tab name="bash" %}}
{{% tab title="bash" %}}
```bash
echo "Hello World!"
```

View file

@ -144,12 +144,12 @@ graph LR;
| i |
|---|
| {{< tabs >}}
{{% tab name="python" %}}
{{% tab title="python" %}}
```python
print("Hello World!")
```
{{% /tab %}}
{{% tab name="bash" %}}
{{% tab title="bash" %}}
```bash
echo "Hello World!"
```