From b9d293bb585d226230e7c67080a7333991a7e136 Mon Sep 17 00:00:00 2001 From: todd gureckis Date: Tue, 9 Jul 2024 15:21:18 -0400 Subject: [PATCH] fix: correting base path for github pages --- README.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f607da..568fbbe 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/package.json b/package.json index 64468ad..075c45b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "packageManager": "pnpm@9.2.0", "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",