Skip to content

Commit

Permalink
docs: remove tabs deprecation warning matcornic#550
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Jun 5, 2023
1 parent d68a80d commit 84a884e
Show file tree
Hide file tree
Showing 16 changed files with 81 additions and 81 deletions.
4 changes: 2 additions & 2 deletions exampleSite/content/shortcodes/attachments/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/shortcodes/badge.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 */%}}
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/shortcodes/button.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ 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 */%}}
{{%/* button href="https://gohugo.io/" style="warning" icon="dragon" %}}Get Hugo{{% /button */%}}
````

{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}

````go
{{ partial "shortcodes/button.html" (dict
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/shortcodes/children/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/shortcodes/expand.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/shortcodes/icon.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" */%}}
Expand All @@ -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 */%}}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/shortcodes/include.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/shortcodes/math.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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" */>}}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/shortcodes/mermaid.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -41,7 +41,7 @@ graph LR;
````

{{% /tab %}}
{{% tab name="shortcode" %}}
{{% tab title="shortcode" %}}

````go
{{</* mermaid align="center" zoom="true" */>}}
Expand All @@ -52,7 +52,7 @@ graph LR;
````

{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}

````go
{{ partial "shortcodes/mermaid.html" (dict
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/shortcodes/notice.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" */%}}
Expand All @@ -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" */%}}
Expand All @@ -32,7 +32,7 @@ It is all about the boxes.
````

{{% /tab %}}
{{% tab name="partial" %}}
{{% tab title="partial" %}}

````go
{{ partial "shortcodes/notice.html" (dict
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/shortcodes/openapi/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/shortcodes/siteparam.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ 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
{{%/* siteparam name="editURL" */%}}
````

{{% /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
Expand Down
14 changes: 7 additions & 7 deletions exampleSite/content/shortcodes/tab.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand All @@ -22,23 +22,23 @@ 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!");
```
{{%/* /tab */%}}
````

{{% /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)
)}}
````
Expand All @@ -57,7 +57,7 @@ printf("Hello World!");

### Code with collapsed margins

{{% tab name="Code" %}}
{{% tab title="Code" %}}

```python
printf("Hello World!");
Expand All @@ -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.

Expand Down
Loading

0 comments on commit 84a884e

Please sign in to comment.