feat: add content repository example

This commit is contained in:
2026-08-29 18:59:58 +08:00
parent 0cf1f51745
commit e169eae2dc
12 changed files with 340 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
{
"New easy-slides page": {
"scope": "markdown",
"prefix": "slide-page",
"body": [
"---",
"layout: ${1:default}",
"---",
"",
"## ${2:标题}",
"",
"${3:内容}",
"",
"<!--",
"${4:演讲备注}",
"-->"
],
"description": "插入一页 easy-slides 幻灯片"
},
"Smart image": {
"scope": "markdown",
"prefix": "slide-image",
"body": [
"![${1:说明}](./assets/${2:image.png}){fit=\"${3:contain}\" position=\"${4:center}\" max-height=\"${5:60vh}\"}"
],
"description": "插入带自动适配属性的图片"
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"recommendations": [
"antfu.slidev",
"vue.volar",
"davidanson.vscode-markdownlint"
]
}
+10
View File
@@ -0,0 +1,10 @@
{
"editor.wordWrap": "on",
"files.trimTrailingWhitespace": true,
"markdown.validate.enabled": true,
"markdownlint.config": {
"MD013": false,
"MD033": false,
"MD041": false
}
}
+33
View File
@@ -0,0 +1,33 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "easy-slides: preview current deck",
"type": "shell",
"command": "pnpm",
"args": ["dev", "--", "${file}"],
"isBackground": true,
"problemMatcher": []
},
{
"label": "easy-slides: present current deck",
"type": "shell",
"command": "pnpm",
"args": ["present", "--", "${file}"],
"isBackground": true,
"problemMatcher": []
},
{
"label": "easy-slides: check",
"type": "shell",
"command": "pnpm check",
"problemMatcher": []
},
{
"label": "easy-slides: build",
"type": "shell",
"command": "pnpm build",
"problemMatcher": []
}
]
}