Skip to content

Commit

Permalink
[Docs] Add new VSCode snippet for tabs (cloudflare#5622)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosousa authored Aug 24, 2022
1 parent d85df26 commit 5df647c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .vscode/devdocs.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,23 @@
"description": "Includes content from a partial in the current document",
"scope": "markdown"
},
"Adds two tabs for dashboard/API instructions": {
"prefix": ["addtabs", "twotabs"],
"body": [
"{{<tabs labels=\"Dashboard | API\">}}",
"{{<tab label=\"dashboard\" no-code=\"true\">}}",
"",
"$0",
"",
"{{</tab>}}",
"{{<tab label=\"api\" no-code=\"true\">}}",
"",
"",
"",
"{{</tab>}}",
"{{</tabs>}}",
],
"description": "Adds a new tabs section with two tabs for dashboard and API instructions",
"scope": "markdown"
},
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Prefixes | Description
`metatitle` | Inserts meta title fields in existing Markdown header. Used to complement a full file header.
`headerpartialfile` | Inserts a header for a partial Markdown file.
`partialinclude` or `renderpartial` | Inserts a `render` shortcode to include content from a partial in the current document.
`twotabs` or `addtabs` | Inserts a new tabs section with two tabs for dashboard and API instructions.

Triggering one of the available snippets will insert their body content at the current cursor position.

Expand Down

0 comments on commit 5df647c

Please sign in to comment.