-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathsnowplow-docs.code-snippets
168 lines (168 loc) · 4.55 KB
/
snowplow-docs.code-snippets
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
// Place your Documentation workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Front Matter": {
"scope": "markdown",
"prefix": "front_matter",
"body": [
"---",
"title: \"$1\"",
"sidebar_position: $2",
"description: $3",
"---",
""
],
"description": "Docusaurus Front Matter"
},
"Doc card block": {
"scope": "markdown",
"prefix": "doc_card",
"body": [
"```mdx-code-block",
"import DocCardList from '@theme/DocCardList';",
"",
"<DocCardList />",
"```",
""
],
"description": "Docusaurus doc card block for empty hierarchy pages"
},
"Themed image block": {
"scope": "markdown",
"prefix": "theme",
"body": [
"<ThemedImage ",
"alt='$1'",
"sources={{",
"light: require('./images/$2').default, ",
"dark: require('./images/$3').default",
"}}",
"/>",
""
],
"description": "Themed image tag for light mode and dark mode images"
},
"Tabs block": {
"scope": "markdown",
"prefix": "tab",
"body": [
"<Tabs groupId=\"$1\" queryString>",
"<TabItem value=\"$2\" label=\"$3\" default>",
"",
"$4",
"",
"</TabItem>",
"<TabItem value=\"$5\" label=\"$6\">",
"",
"$7",
"",
"</TabItem>",
"",
"</Tabs>",
""
],
"description": "Full Tab block for toggling"
},
"Tabs Item": {
"scope": "markdown",
"prefix": "tabitem",
"body": ["<TabItem value=\"$1\" label=\"$2\">", "", "$3", "", "</TabItem>"],
"description": "Additional tab item block"
},
"Note Admonition": {
"scope": "markdown",
"prefix": "admon_note",
"body": [":::note", "", "$0", "", ":::"],
"description": "Note admonition"
},
"Tip Admonition": {
"scope": "markdown",
"prefix": "admon_tip",
"body": [":::tip", "", "$0", "", ":::"],
"description": "Tip admonition"
},
"Info Admonition": {
"scope": "markdown",
"prefix": "admon_info",
"body": [":::info", "", "$0", "", ":::"],
"description": "Info admonition"
},
"Caution Admonition": {
"scope": "markdown",
"prefix": "admon_caution",
"body": [":::caution", "", "$0", "", ":::"],
"description": "Caution admonition"
},
"Danger Admonition": {
"scope": "markdown",
"prefix": "admon_danger",
"body": [":::danger", "", "$0", "", ":::"],
"description": "Danger admonition"
},
"Collapsable Details Block": {
"scope": "markdown",
"prefix": "details_block",
"body": ["<details>", "<summary>$1</summary>", "$2", "</details>", ""]
},
"Tabs mdx import": {
"scope": "markdown",
"prefix": "import_tabs",
"body": [
"```mdx-code-block",
"import Tabs from '@theme/Tabs';",
"import TabItem from '@theme/TabItem';",
"```",
""
],
"description": "Docusaurus mdx import block for tabs"
},
"ThemedImage mdx import": {
"scope": "markdown",
"prefix": "import_themedimage",
"body": [
"```mdx-code-block",
"import Tabs from '@theme/Tabs';",
"import TabItem from '@theme/TabItem';",
"import ThemedImage from '@theme/ThemedImage';",
"```",
""
],
"description": "Docusaurus mdx import block for themed images"
},
"componentVersions mdx import": {
"scope": "markdown",
"prefix": "import_componentversions",
"body": [
"```mdx-code-block",
"import {versions} from '@site/src/componentVersions';",
"```",
""
],
"description": "Docusaurus mdx import block for componentVersions"
},
"CodeBlock mdx import": {
"scope": "markdown",
"prefix": "import_codeblock",
"body": [
"```mdx-code-block",
"import CodeBlock from '@theme/CodeBlock';",
"```",
""
],
"description": "Docusaurus mdx import block for CodeBlock"
}
}