Skip to content

Commit 59132de

Browse files
Update contributing-to-docs.md
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
1 parent 5eb7033 commit 59132de

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

content/en/contributing/contributing-to-docs.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -501,28 +501,34 @@ This is the final element on the page and there should be no margin below this.
501501
502502
Layer5 docs support tabbed content using the `tabpane` shortcode. Here's a basic example:
503503
504-
{{< tabpane >}}
504+
{{< tabpane text=true >}}
505505
506-
{{< tab name="Tab 0" >}}
506+
{{< tab header="Example Tab 1" >}}
507507
508-
{{% highlight text %}}
508+
```plaintext
509509
This is the content inside Example Tab 1.
510-
{{% /highlight %}}
510+
```
511511
512512
{{< /tab >}}
513513
514-
{{< tab name="Tab 1" >}}
514+
{{< tab header="Example Tab 2" >}}
515515
516-
{{% highlight text %}}
516+
```plaintext
517517
This is the content inside Example Tab 2.
518-
{{% /highlight %}}
518+
```
519519
520520
{{< /tab >}}
521521
522522
{{< /tabpane >}}
523523
524524
Use this shortcode to display platform-specific commands, language-specific code blocks, or comparisons — all in an elegant, user-friendly tab layout.
525525
526+
<style>
527+
.tab-content { padding: 0 !important; }
528+
.tab-content pre { margin: 0 !important; border-radius: 0 !important; }
529+
</style>
530+
531+
526532
527533
528534
### Footnotes

0 commit comments

Comments
 (0)