Skip to content

Commit 9382de2

Browse files
Add tabpane shortcode usage example to contributing guide
Added an example usage of the tabpane shortcode to the Contributing Guide. This helps contributors understand how to implement tabbed content in documentation, which can be useful for organizing related information like platform-specific commands or language-based code examples. Signed-off-by: Ayush More <ayushmore42595@gmail.com>
1 parent 502911e commit 9382de2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,20 @@ Stumptown PBR&B keytar plaid street art, forage XOXO pitchfork selvage affogato
497497
This is the final element on the page and there should be no margin below this.
498498
```
499499
500+
501+
### TabPane Shortcode Example
502+
Layer5 docs support tabbed content using the `tabpane` shortcode. Here’s a basic example:
503+
{{< tabpane >}}
504+
{{< tab name="Example Tab 1" >}}
505+
This is the content inside Tab 1.
506+
{{< /tab >}}
507+
{{< tab name="Example Tab 2" >}}
508+
This is the content inside Tab 2.
509+
{{< /tab >}}
510+
{{< /tabpane >}}
511+
Use this shortcode to display platform-specific commands, language-specific code blocks, or comparisons — all in an elegant, user-friendly tab layout.
512+
513+
500514
### Footnotes
501515
502516
This is a superscript number for your footnote. [^1]

0 commit comments

Comments
 (0)