Skip to content

Commit 4e5e270

Browse files
authored
[Docs] Add VS Code snippet for external link pages (cloudflare#13017)
1 parent 5b2188a commit 4e5e270

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.vscode/devdocs.code-snippets

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@
9999
"description": "Header for a partial Markdown file",
100100
"scope": "markdown"
101101
},
102+
"Markdown header: external link page": {
103+
"prefix": ["headerexternallink"],
104+
"body": [
105+
"---",
106+
"pcx_content_type: navigation",
107+
"title: ${1:title}",
108+
"external_link: ${2:url}",
109+
"weight: ${3:weight}",
110+
"_build:",
111+
" publishResources: false",
112+
" render: never",
113+
"---",
114+
]
115+
},
102116
"Markdown header: add meta title": {
103117
"prefix": ["metatitle"],
104118
"body": [

SNIPPETS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Prefixes | Description
2020
`glossarytooltip` | Adds a new glossary reference, displaying its (short) definition as a tooltip.
2121
`headerpartialfile` | Inserts a header for a partial Markdown file.
2222
`headerpartialfileparams` | Inserts a header for a partial Markdown file with input parameters.
23+
`headerexternallink` | Inserts a header for a page with no content that links to an external URL.
2324
`inlinepill` or `pillinline` | Inserts shortcode for an inline pill (appearing after a piece of text) stating the release status (for example, Beta).
2425
`partialinclude` or `renderpartial` | Inserts a `render` shortcode to include content from a partial in the current document.
2526
`partialincludeparams` or `renderpartialparams` | Inserts a `render` shortcode to include content from a partial with input parameters in the current document.

0 commit comments

Comments
 (0)