forked from cloudflare/cloudflare-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevdocs.code-snippets
More file actions
137 lines (136 loc) · 3.88 KB
/
Copy pathdevdocs.code-snippets
File metadata and controls
137 lines (136 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"Aside with header": {
"prefix": ["asideheader"],
"body": [
"{{<Aside type=\"${1|note,warning|}\" header=\"${2:header}\">}}",
"$0$TM_SELECTED_TEXT",
"{{</Aside>}}"
],
"description": "Aside shortcode with header text",
"scope": "markdown"
},
"Aside without header": {
"prefix": ["asidenoheader"],
"body": [
"{{<Aside type=\"${1|note,warning|}\">}}",
"$0$TM_SELECTED_TEXT",
"{{</Aside>}}"
],
"description": "Aside shortcode without a header",
"scope": "markdown"
},
"Surround with content-column": {
"prefix": ["ccol"],
"body": [
"{{<content-column>}}",
"",
"$0$TM_SELECTED_TEXT",
"",
"{{</content-column>}}"
],
"description": "Surround selection with content-column shortcodes",
"scope": "markdown"
},
"Surround with table-wrap": {
"prefix": ["tblwrap"],
"body": [
"{{<table-wrap>}}",
"",
"$0$TM_SELECTED_TEXT",
"",
"{{</table-wrap>}}"
],
"description": "Surround selection with table-wrap shortcodes",
"scope": "markdown"
},
"Directory listing": {
"prefix": ["directory"],
"body": [
"{{<directory-listing>}}"
],
"description": "Add directory-listing shortcode",
"scope": "markdown"
},
"Markdown header: full file": {
"prefix": ["headerfullfile"],
"body": [
"---",
"title: ${1:title}",
"pcx_content_type: ${2|overview,concept,how-to,configuration,reference,navigation,best-practices,faq,tutorial,glossary|}",
"weight: TODO",
"---",
"",
"# ${1:title}",
"",
"$0"
],
"description": "Header for a complete Markdown file",
"scope": "markdown"
},
"Markdown header: partial file": {
"prefix": ["headerpartialfile"],
"body": [
"---",
"_build:",
" publishResources: false",
" render: never",
" list: never",
"---",
"",
"$0"
],
"description": "Header for a partial Markdown file",
"scope": "markdown"
},
"Markdown header: add meta title": {
"prefix": ["metatitle"],
"body": [
"meta:",
" title: $0"
],
"description": "Meta title in Markdown header",
"scope": "yaml"
},
"Render/include partial": {
"prefix": ["partialinclude", "renderpartial"],
"body": [
"{{<render file=\"$0\">}}"
],
"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"
},
"Create collapsible details section": {
"prefix": ["detailssection", "collapsible"],
"body": [
"<details>",
"<summary>${1:header}</summary>",
"<div>",
"",
"$0$TM_SELECTED_TEXT",
"",
"</div>",
"</details>",
],
"description": "Creates a new collapsible <details> element with a title and a body",
"scope": "markdown"
},
}