Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update exemple to make no cors error #12

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Or add it in your `package.json` file:
```md
# Example

<Asciinema src="/casts/yourcast.cast" />
<Asciinema src="casts/yourcast.cast" />
```

The parameter `src` will look for static assets from the [`public` directory](https://sli.dev/custom/directory-structure.html#public). In this example, the file is be located at `your-project-root/public/casts/yourcast.cast`.
Expand All @@ -96,7 +96,7 @@ All the[ `asciinema-player`'s options](https://github.com/asciinema/asciinema-pl
```md
# Example

<Asciinema src="/casts/yourcast.cast" :playerProps="{speed: 2, rows: 23}"/>
<Asciinema src="casts/yourcast.cast" :playerProps="{speed: 2, rows: 23}"/>
```

### Base paths
Expand Down Expand Up @@ -130,4 +130,4 @@ There are a couple of issues already identified
- Player placeholder is resized after playing cast - [#1](https://github.com/murilo-cunha/slidev-addon-asciinema/issues/1)
- Video's progress does not move in the same place where click happens - [#5](https://github.com/murilo-cunha/slidev-addon-asciinema/issues/5)

Would you like to contribute? Leave a PR! 🚀
Would you like to contribute? Leave a PR! 🚀