create-slidev 0.44.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/package.json +1 -1
- package/template/netlify.toml +11 -11
- package/template/package.json +1 -1
- package/template/slides.md +14 -7
package/README.md
CHANGED
package/package.json
CHANGED
package/template/netlify.toml
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
[build.environment]
|
|
2
|
-
NODE_VERSION = "18"
|
|
3
|
-
|
|
4
1
|
[build]
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
publish = "dist"
|
|
3
|
+
command = "npm run build"
|
|
4
|
+
|
|
5
|
+
[build.environment]
|
|
6
|
+
NODE_VERSION = "18"
|
|
7
7
|
|
|
8
8
|
[[redirects]]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
from = "/.well-known/*"
|
|
10
|
+
to = "/.well-known/:splat"
|
|
11
|
+
status = 200
|
|
12
12
|
|
|
13
13
|
[[redirects]]
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
from = "/*"
|
|
15
|
+
to = "/index.html"
|
|
16
|
+
status = 200
|
package/template/package.json
CHANGED
package/template/slides.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
theme: seriph
|
|
3
3
|
background: https://source.unsplash.com/collection/94734566/1920x1080
|
|
4
4
|
class: text-center
|
|
5
|
-
highlighter:
|
|
5
|
+
highlighter: shikiji
|
|
6
6
|
lineNumbers: false
|
|
7
7
|
info: |
|
|
8
8
|
## Slidev Starter Template
|
|
@@ -128,14 +128,24 @@ image: https://source.unsplash.com/collection/94734566/1920x1080
|
|
|
128
128
|
|
|
129
129
|
# Code
|
|
130
130
|
|
|
131
|
-
Use code snippets and get the highlighting directly![^1]
|
|
131
|
+
Use code snippets and get the highlighting directly, and even types hover![^1]
|
|
132
132
|
|
|
133
|
-
```ts {all|
|
|
133
|
+
```ts {all|5|1-6|9|all} twoslash
|
|
134
|
+
// TwoSlash enables TypeScript hover information and errors in markdown code blocks
|
|
135
|
+
// Learn more at https://www.typescriptlang.org/dev/twoslash/
|
|
136
|
+
function getUser(id: number): User {
|
|
137
|
+
return undefined as any
|
|
138
|
+
}
|
|
139
|
+
function saveUser(id: number, user: User) {
|
|
140
|
+
// ...
|
|
141
|
+
}
|
|
142
|
+
// ---cut---
|
|
134
143
|
interface User {
|
|
135
144
|
id: number
|
|
136
145
|
firstName: string
|
|
137
146
|
lastName: string
|
|
138
147
|
role: string
|
|
148
|
+
// ^?
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
function updateUser(id: number, update: User) {
|
|
@@ -203,7 +213,6 @@ Also, HTML elements are valid:
|
|
|
203
213
|
</div>
|
|
204
214
|
-->
|
|
205
215
|
|
|
206
|
-
|
|
207
216
|
---
|
|
208
217
|
class: px-20
|
|
209
218
|
---
|
|
@@ -212,7 +221,7 @@ class: px-20
|
|
|
212
221
|
|
|
213
222
|
Slidev comes with powerful theming support. Themes can provide styles, layouts, components, or even configurations for tools. Switching between themes by just **one edit** in your frontmatter:
|
|
214
223
|
|
|
215
|
-
<div grid="~ cols-2 gap-2" m="
|
|
224
|
+
<div grid="~ cols-2 gap-2" m="t-2">
|
|
216
225
|
|
|
217
226
|
```yaml
|
|
218
227
|
---
|
|
@@ -400,7 +409,6 @@ cloud {
|
|
|
400
409
|
[Example 1]
|
|
401
410
|
}
|
|
402
411
|
|
|
403
|
-
|
|
404
412
|
database "MySql" {
|
|
405
413
|
folder "This is my folder" {
|
|
406
414
|
[Folder 3]
|
|
@@ -410,7 +418,6 @@ database "MySql" {
|
|
|
410
418
|
}
|
|
411
419
|
}
|
|
412
420
|
|
|
413
|
-
|
|
414
421
|
[Another Component] --> [Example 1]
|
|
415
422
|
[Example 1] --> [Folder 3]
|
|
416
423
|
[Folder 3] --> [Frame 4]
|