Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit684e75e

Browse files
authored
docs: create a markdown code snippet file to make it easier for contributors (#15611)
adds snippets to make some of the docs markdown components a littleeasier to use- wraps selected text where it seems appropriate- limits code block languages (these are suggestions, you can choosefrom the list or enter anything)tabs example:![tabsgif](https://github.com/user-attachments/assets/226b942e-4b34-4d3b-8561-84c5a17e2805)---------Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
1 parent26438aa commit684e75e

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ yarn-error.log
1717
# Allow VSCode recommendations and default settings in project root.
1818
!/.vscode/extensions.json
1919
!/.vscode/settings.json
20+
# Allow code snippets
21+
!/.vscode/*.code-snippets
2022

2123
# Front-end ignore patterns.
2224
.next/

‎.prettierignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ yarn-error.log
2020
# Allow VSCode recommendations and default settings in project root.
2121
!/.vscode/extensions.json
2222
!/.vscode/settings.json
23+
# Allow code snippets
24+
!/.vscode/*.code-snippets
2325

2426
# Front-end ignore patterns.
2527
.next/

‎.vscode/markdown.code-snippets‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
// For info about snippets, visit https://code.visualstudio.com/docs/editor/userdefinedsnippets
3+
4+
"admonition": {
5+
"prefix":"#callout",
6+
"body": [
7+
"<blockquote class=\"admonition ${1|caution,important,note,tip,warning|}\">\n",
8+
"${TM_SELECTED_TEXT:${2:add info here}}\n",
9+
"</blockquote>\n"
10+
],
11+
"description":"callout admonition caution info note tip warning"
12+
},
13+
"fenced code block": {
14+
"prefix":"#codeblock",
15+
"body": ["```${1|apache,bash,console,diff,Dockerfile,env,go,hcl,ini,json,lisp,md,powershell,shell,sql,text,tf,tsx,yaml|}","${TM_SELECTED_TEXT}$0","```"],
16+
"description":"fenced code block"
17+
},
18+
"image": {
19+
"prefix":"#image",
20+
"body":"![${TM_SELECTED_TEXT:${1:alt}}](${2:url})$0",
21+
"description":"image"
22+
},
23+
"tabs": {
24+
"prefix":"#tabs",
25+
"body": [
26+
"<div class=\"tabs\">\n",
27+
"${1:optional description}\n",
28+
"## ${2:tab title}\n",
29+
"${TM_SELECTED_TEXT:${3:first tab content}}\n",
30+
"## ${4:tab title}\n",
31+
"${5:second tab content}\n",
32+
"## ${6:tab title}\n",
33+
"${7:third tab content}\n",
34+
"</div>\n"
35+
],
36+
"description":"tabs"
37+
}
38+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp