charlie's site, built with Astro.
make installmake servemake buildOutput goes to build/.
Pushing to main builds and deploys through the Deploy GitHub Actions
workflow, which needs two repository secrets:
CLOUDFLARE_API_TOKEN- a token with the "Edit Cloudflare Workers" permissionsCLOUDFLARE_ACCOUNT_ID- the account ID from the Cloudflare dashboard
To deploy by hand:
make deployThe Worker serves build/ as static assets. wrangler.jsonc holds the
routing rules: URLs have no trailing slash, and unmatched paths get
404.html. Redirects live in static/_redirects.
make postThis creates a new markdown file in src/content/posts/.
src/content/posts/- posts and standalone pages, one markdown file eachsrc/pages/- routes: the homepage, the[slug]page route, and the RSS feedsrc/layouts/App.astro- the BeOS desktop window chrome every page sharesstatic/- files served from the site root (app.css,desktop.js, images, icons,_redirects)wrangler.jsonc- Cloudflare Workers config for serving the built site
Add missing /img/ to markdown image paths for one page:
sed 's/!\[\(.*\)](/](/![\1](\/img\//g' *.mdRun make help to see the available shortcuts.