Skip to content

Commit b9d293b

Browse files
committed
fix: correting base path for github pages
1 parent f90a43d commit b9d293b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ To export to pdf:
1515

1616
`pnpm export`
1717

18+
# Publishing live
19+
20+
To auto publish live enable github pages from github actions on your forked repo.
21+
22+
# Note
23+
24+
If you change the name of your repo then change the "name" field in `package.json` to match.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packageManager": "[email protected]",
44
"scripts": {
55
"dev": "slidev slides.md",
6-
"build": "slidev build",
6+
"build": "slidev build --base /$npm_package_name",
77
"export": "slidev export --wait 1000 --per-slide --output ./slides.pdf"
88
},
99
"type": "module",

0 commit comments

Comments
 (0)