This repository builds the 5of12 site as a static SvelteKit app and deploys it to GitHub Pages.
The previous Jekyll/Ruby build has been removed. GitHub CodeQL default setup was also disabled because it was still trying to analyze Ruby even though the site no longer contains Ruby source.
npm install
npm run devThe dev server defaults to Vite's local URL, usually http://localhost:5173/.
npm run check
npm run buildnpm run build writes the static site to build/, which is the directory uploaded by the GitHub Pages workflow.
- Home and about pages live in
src/routes/. - Shared site data lives in
src/lib/content/site.ts. - Journal posts remain in
_posts/and are parsed at build time. - Static images and media are served from
static/assets/.
Journal posts are currently parsed from the old Jekyll-style _posts/ directory by src/lib/server/posts.ts. This preserves the existing content during the Svelte transition, but it is not as capable as the previous Jekyll Markdown pipeline.
For future Markdown work, consider adding mdsvex so posts can be rendered as first-class Svelte content with component support, layouts and better authoring ergonomics:
- Svelte CLI mdsvex docs: https://svelte.dev/docs/cli/mdsvex
Likely migration path:
- Add mdsvex to the Svelte config.
- Move posts from
_posts/into a Svelte-friendly content route or content directory. - Keep existing front matter fields:
title,author,date,coverImage. - Replace the custom Markdown parsing in
src/lib/server/posts.tsonce mdsvex owns rendering.
GitHub Pages deploys from .github/workflows/deploy.yml on pushes to main.
The workflow:
- Installs Node dependencies with
npm ci. - Builds the static SvelteKit site with
npm run build. - Uploads the
build/directory to GitHub Pages.