Soren Gabor's portfolio: an Astro static site in redesign/, published to GitHub Pages at https://sorengabor.com.
Requires Node 22.19 or newer. Install dependencies on a local disk, not a network mount.
cd redesign
npm ci # install exactly what package-lock.json says
npm run dev # http://localhost:4321 with hot reload
npm run build # static build to redesign/dist/ (also validates all content)
npm run preview # serve the built sitenpm run build is the test suite. It fails on a malformed Work or Media entry, a missing image, or a broken route.
| Path | What it is |
|---|---|
redesign/ |
The Astro app: pages, components, styles, config. |
content/projects/*.json |
One file per Work item. |
content/media/*.json |
One file per Media item. |
images/ |
All site images, referenced as /images/... from content. |
docs/ |
Design system, architecture, content how-to. |
.github/workflows/ |
deploy.yml (manual publish) and redesign.yml (build check on PRs). |
scripts/image_resizer.py |
Optional helper that makes 400/800/1600 px JPEG sizes. |
AGENTS.md |
Short entry point for AI agents. |
- Add or edit a Work item, a Media item, or the About page: docs/CONTENT.md.
- Change colors, type, spacing, or motion: docs/DESIGN.md.
- Understand how a page or effect works: docs/ARCHITECTURE.md.
Publishing is manual and deliberate.
- Merge your change into
main(open a PR; theRedesign buildcheck runsnpm run build). - In GitHub, open Actions → Deploy to GitHub Pages → Run workflow on
main. - Type
DEPLOYin the confirm box and run it. The site updates in about a minute.
Pages Source is set to GitHub Actions (Settings → Pages). The custom domain comes from redesign/public/CNAME.
- Fast: in Actions, re-run an earlier successful Deploy to GitHub Pages run (it redeploys that build).
- Revert:
git revertthe bad commit onmain, then run the deploy again. - Last resort (old site): the pre-redesign hand-written site was removed from the repo root in the cleanup commit, so switching Pages Source back to the
mainbranch root no longer works on currentmain. To use it, check out the commit just before the cleanup (git log --oneline -- index.htmlfinds it) on a branch, point Pages at that branch, and accept that this serves the old site.