Skip to content

Commit

Permalink
fix: correting base path for github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gureckis committed Jul 9, 2024
1 parent f90a43d commit b9d293b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ To export to pdf:

`pnpm export`

# Publishing live

To auto publish live enable github pages from github actions on your forked repo.

# Note

If you change the name of your repo then change the "name" field in `package.json` to match.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packageManager": "[email protected]",
"scripts": {
"dev": "slidev slides.md",
"build": "slidev build",
"build": "slidev build --base /$npm_package_name",
"export": "slidev export --wait 1000 --per-slide --output ./slides.pdf"
},
"type": "module",
Expand Down

0 comments on commit b9d293b

Please sign in to comment.