Skip to content

Commit cf2fee4

Browse files
authored
docs: use public folder in examples (#1601)
1 parent 435badc commit cf2fee4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/builtin/components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,11 @@ Embed a video.
295295
```md
296296
<SlidevVideo v-click autoplay controls>
297297
<!-- Anything that can go in a HTML video element. -->
298-
<source src="myMovie.mp4" type="video/mp4" />
299-
<source src="myMovie.webm" type="video/webm" />
298+
<source src="/myMovie.mp4" type="video/mp4" />
299+
<source src="/myMovie.webm" type="video/webm" />
300300
<p>
301301
Your browser does not support videos. You may download it
302-
<a href="myMovie.mp4">here</a>.
302+
<a href="/myMovie.mp4">here</a>.
303303
</p>
304304
</SlidevVideo>
305305
```

docs/guide/syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This is the cover page.
5151

5252
---
5353
layout: center
54-
background: './images/background-1.png'
54+
background: /background-1.png
5555
class: 'text-white'
5656
---
5757

@@ -89,7 +89,7 @@ This is the cover page.
8989
```yaml
9090
# The first yaml block will be treated as the frontmatter of that slide
9191
layout: center
92-
background: './images/background-1.png'
92+
background: /background-1.png
9393
class: 'text-white'
9494
```
9595

0 commit comments

Comments
 (0)