Skip to content

Commit

Permalink
add info on base paths
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo-cunha committed Jul 7, 2023
1 parent af98547 commit 01ee05f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: [main]
env:
BASE: slidev-addon-asciinema
BASE: /slidev-addon-asciinema
jobs:
publish:
runs-on: ubuntu-latest
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,21 @@ All the[ `asciinema-player`'s options](https://github.com/asciinema/asciinema-pl
</RenderWhen>
```

### Base paths

If you are building your slides for [static hosting](https://sli.dev/guide/hosting.html#static-hosting) and you are using a different [base path](https://sli.dev/guide/hosting.html#base-path) (i.e.: you're using GitHub Pages). The component should work as expected, but remember to include the base path in your `vite.config.js` file.

```sh
slidev build --base /your-base-path
```

```js
export default {
base: '/your-base-path',
};

```

## Known issues

There are a couple of issues already identified
Expand Down

0 comments on commit 01ee05f

Please sign in to comment.