-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-deploy docs built from commit f277fa3
- Loading branch information
Showing
52 changed files
with
1,003 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
docs-gen/themes/learn/exampleSite/content/shortcodes/attachments.en.files/small_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file was downloaded from Hugo Learn Theme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
docs-gen/themes/learn/exampleSite/content/shortcodes/attachments.fr.files/small_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ce fichier a été téléchargé à partir du Hugo Learn Theme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
docs-gen/themes/learn/exampleSite/content/shortcodes/tabs.en.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
--- | ||
title: Tabbed views | ||
description : "Synchronize selection of content in different tabbed views" | ||
--- | ||
|
||
Choose which content to see across the page. Very handy for providing code | ||
snippets for multiple languages or providing configuration in different formats. | ||
|
||
## Code example | ||
|
||
{{</* tabs */>}} | ||
{{%/* tab name="python" */%}} | ||
```python | ||
print("Hello World!") | ||
``` | ||
{{%/* /tab */%}} | ||
{{%/* tab name="R" */%}} | ||
```R | ||
> print("Hello World!") | ||
``` | ||
{{%/* /tab */%}} | ||
{{%/* tab name="Bash" */%}} | ||
```Bash | ||
echo "Hello World!" | ||
``` | ||
{{%/* /tab */%}} | ||
{{</* /tabs */>}} | ||
|
||
Renders as: | ||
|
||
{{< tabs >}} | ||
{{% tab name="python" %}} | ||
```python | ||
print("Hello World!") | ||
``` | ||
{{% /tab %}} | ||
{{% tab name="R" %}} | ||
```R | ||
> print("Hello World!") | ||
``` | ||
{{% /tab %}} | ||
{{% tab name="Bash" %}} | ||
```Bash | ||
echo "Hello World!" | ||
``` | ||
{{% /tab %}} | ||
{{< /tabs >}} | ||
|
||
Tab views with the same tabs that belong to the same group sychronize their selection: | ||
|
||
{{< tabs >}} | ||
{{% tab name="python" %}} | ||
```python | ||
print("Hello World!") | ||
``` | ||
{{% /tab %}} | ||
{{% tab name="R" %}} | ||
```R | ||
> print("Hello World!") | ||
``` | ||
{{% /tab %}} | ||
{{% tab name="Bash" %}} | ||
```Bash | ||
echo "Hello World!" | ||
``` | ||
{{% /tab %}} | ||
{{< /tabs >}} | ||
|
||
## Config example | ||
|
||
{{</* tabs groupId="config" */>}} | ||
{{%/* tab name="json" */%}} | ||
```json | ||
{ | ||
"Hello": "World" | ||
} | ||
``` | ||
{{%/* /tab */%}} | ||
{{%/* tab name="XML" */%}} | ||
```xml | ||
<Hello>World</Hello> | ||
``` | ||
{{%/* /tab */%}} | ||
{{%/* tab name="properties" */%}} | ||
```properties | ||
Hello = World | ||
``` | ||
{{%/* /tab */%}} | ||
{{</* /tabs */>}} | ||
|
||
Renders as: | ||
|
||
{{< tabs groupId="config" >}} | ||
{{% tab name="json" %}} | ||
```json | ||
{ | ||
"Hello": "World" | ||
} | ||
``` | ||
{{% /tab %}} | ||
{{% tab name="XML" %}} | ||
```xml | ||
<Hello>World</Hello> | ||
``` | ||
{{% /tab %}} | ||
{{% tab name="properties" %}} | ||
```properties | ||
Hello = World | ||
``` | ||
{{% /tab %}} | ||
{{< /tabs >}} | ||
|
||
{{% notice warning %}} | ||
When using tab views with different content sets, make sure to use a common `groupId` for equal sets but distinct | ||
`groupId` for different sets. The `groupId` defaults to `'default'`. | ||
**Take this into account across the whole site!** | ||
The tab selection is restored automatically based on the `groupId` and if it cannot find a tab item because it came | ||
from the `'default'` group on a different page then all tabs will be empty at first. | ||
{{% /notice %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.