Skip to content

Commit f1622f7

Browse files
committed
feat: enable slides formatting
1 parent f2f6dc3 commit f1622f7

File tree

14 files changed

+628
-320
lines changed

14 files changed

+628
-320
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ A clear and concise description of what the bug is.
1616

1717
**To Reproduce**
1818
Steps to reproduce the behavior:
19+
1920
1. Go to '...'
2021
2. Click on '....'
2122
3. Scroll down to '....'
2223
4. See the error
2324

2425
**Desktop (please complete the following information):**
25-
- OS:
26-
- Browser:
27-
- Slidev version:
26+
27+
- OS:
28+
- Browser:
29+
- Slidev version:

CODE_OF_CONDUCT.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

demo/starter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"@slidev/theme-default": "^0.25.0",
1212
"@slidev/theme-seriph": "^0.25.0",
1313
"nodemon": "^3.1.0",
14-
"vue": "^3.4.20"
14+
"vue": "^3.4.21"
1515
}
1616
}

demo/starter/slides.md

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ const author = reactive({
201201
]
202202
})
203203
```
204+
204205
```ts
205206
export default {
206207
data() {
@@ -217,6 +218,7 @@ export default {
217218
}
218219
}
219220
```
221+
220222
```ts
221223
export default {
222224
data: () => ({

eslint.config.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ export default antfu(
99
},
1010
},
1111
formatters: {
12-
// disable for now, we can enable it after we have the slidev plugin in eslint-config
13-
markdown: false,
12+
markdown: true,
1413
css: true,
14+
slidev: {
15+
files: [
16+
'**/slides.md',
17+
'**/template.md',
18+
'**/example.md',
19+
'test/fixtures/markdown/**/*.md',
20+
],
21+
},
1522
},
1623
},
1724
)

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test": "vitest test"
2424
},
2525
"devDependencies": {
26-
"@antfu/eslint-config": "^2.6.4",
26+
"@antfu/eslint-config": "^2.7.0",
2727
"@antfu/ni": "^0.21.12",
2828
"@antfu/utils": "^0.7.7",
2929
"@shikijs/markdown-it": "^1.1.7",
@@ -39,7 +39,7 @@
3939
"@types/js-yaml": "^4.0.9",
4040
"@types/katex": "^0.16.7",
4141
"@types/markdown-it": "^13.0.7",
42-
"@types/node": "^20.11.20",
42+
"@types/node": "^20.11.24",
4343
"@types/prismjs": "^1.26.3",
4444
"@types/prompts": "^2.4.9",
4545
"@types/recordrtc": "^5.6.14",
@@ -56,8 +56,9 @@
5656
"katex": "^0.16.9",
5757
"lint-staged": "^15.2.2",
5858
"mermaid": "^10.8.0",
59-
"playwright-chromium": "^1.42.0",
59+
"playwright-chromium": "^1.42.1",
6060
"pnpm": "^8.15.4",
61+
"prettier-plugin-slidev": "^1.0.5",
6162
"rimraf": "^5.0.5",
6263
"shiki": "^1.1.7",
6364
"simple-git-hooks": "^2.9.0",
@@ -66,7 +67,7 @@
6667
"typescript": "^5.3.3",
6768
"vite": "^5.1.4",
6869
"vitest": "^1.3.1",
69-
"vue-tsc": "^1.8.27",
70+
"vue-tsc": "^2.0.2",
7071
"zx": "^7.2.3"
7172
},
7273
"pnpm": {

packages/client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"shiki-magic-move": "^0.1.0",
5757
"typescript": "^5.3.3",
5858
"unocss": "^0.58.5",
59-
"vue": "^3.4.20",
59+
"vue": "^3.4.21",
6060
"vue-router": "^4.3.0"
6161
},
6262
"devDependencies": {

packages/create-app/template/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"@slidev/cli": "^0.48.0-beta.20",
1212
"@slidev/theme-default": "latest",
1313
"@slidev/theme-seriph": "latest",
14-
"vue": "^3.4.20"
14+
"vue": "^3.4.21"
1515
}
1616
}

packages/slidev/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"vite-plugin-static-copy": "^1.0.1",
113113
"vite-plugin-vue-server-ref": "^0.4.2",
114114
"vitefu": "^0.2.5",
115-
"vue": "^3.4.20",
115+
"vue": "^3.4.21",
116116
"yargs": "^17.7.2"
117117
},
118118
"devDependencies": {

packages/types/src/cli.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ export interface CommonArgs {
44
}
55

66
export interface ExportArgs extends CommonArgs {
7-
output?: string
8-
format?: string
9-
timeout?: number
10-
range?: string
11-
dark?: boolean
7+
'output'?: string
8+
'format'?: string
9+
'timeout'?: number
10+
'range'?: string
11+
'dark'?: boolean
1212
'with-clicks'?: boolean
1313
'executable-path'?: string
1414
'with-toc'?: boolean
1515
'per-slide'?: boolean
16-
scale?: number
16+
'scale'?: number
1717
}
1818

1919
export interface BuildArgs extends ExportArgs {

0 commit comments

Comments
 (0)