Skip to content

Commit

Permalink
docs: use public folder in examples (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed May 20, 2024
1 parent 435badc commit cf2fee4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/builtin/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,11 @@ Embed a video.
```md
<SlidevVideo v-click autoplay controls>
<!-- Anything that can go in a HTML video element. -->
<source src="myMovie.mp4" type="video/mp4" />
<source src="myMovie.webm" type="video/webm" />
<source src="/myMovie.mp4" type="video/mp4" />
<source src="/myMovie.webm" type="video/webm" />
<p>
Your browser does not support videos. You may download it
<a href="myMovie.mp4">here</a>.
<a href="/myMovie.mp4">here</a>.
</p>
</SlidevVideo>
```
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ This is the cover page.

---
layout: center
background: './images/background-1.png'
background: /background-1.png
class: 'text-white'
---

Expand Down Expand Up @@ -89,7 +89,7 @@ This is the cover page.
```yaml
# The first yaml block will be treated as the frontmatter of that slide
layout: center
background: './images/background-1.png'
background: /background-1.png
class: 'text-white'
```

Expand Down

0 comments on commit cf2fee4

Please sign in to comment.