Charlotte's website. Astro and Bun, hosted on Cloudflare Pages. No analytics, hardly any JavaScript.
bun install
bun run dev # http://localhost:4321, drafts included
bun run check # astro check, the share pictures (pictures --check) and the lint
bun run lint # the lint alone: scripts/lint.ts, the habits in STYLE.md
bun run build # writes dist/
bun run build:test # dist/ with the test pages too, which some browser tests open
bun run test # every test; build:test first, as some open the built site
STRICT_SPEED=1 bun run test # the same, with tests of speed held to their limits (a quiet machine)
bun run edit # write and edit in the browser, then publish
bun run deploy # check, build, deploy to bybrooklyn.dev
bun run deploy:preview # the same, to the preview address
bun run deploy:drafts # the whole site with drafts shown, to the drafts preview address (public)Other scripts:
bun run picturesmakes the pictures shown when a page is shared (bun run pictures post-<name>for one).bun run checkfails when one is missing or out of date.bun run photosadds the pictures waiting inphotos/(it also runs beforedevandbuild).bun run langs(the language bar) andbun run projects(facts from GitHub) read from GitHub and writesrc/data/.bun run wasmbuilds the minis' engines from the Rust inwalker/(the Walker and the generalist) andsand/(the sand mini), after changing them.bun run previewservesdist/;bun run cleanremovesdist/and.astro/;bun run cf:loginandcf:whoamisign in to Cloudflare.- By hand:
python3 scripts/fraunces-soft.pythenpython3 scripts/trim-fonts.pyafter changing a font;bun scripts/dictionary.tsremakes mdQuire's dictionary;bun scripts/dictation-check.tsruns the real speech models on the built site.
TypeScript stays on 6.x until astro check accepts 7.
| Posts | src/content/blog/ (kitchen-sink.mdx uses everything a post can) |
| Projects | src/content/projects/ |
| About, setup | src/content/pages/ |
| Resume | src/content/resume/resume.mdx; its PDF is printed from the page at build time |
| Photos | drop pictures in photos/ and run bun run photos; they land in public/photos/ (see scripts/photos.ts) |
| Intro, contact, nav | src/data/site.ts |
| Colors | src/data/theme.ts |
| Typefaces | src/styles/fonts.css |
| Demos | src/demos/; the engine they run on is src/mote/ |
Anything marked draft: true is left out of production builds. The drafts preview is Cloudflare's address for the drafts branch: it is not linked from anywhere, but it is public, and anyone who has or guesses the address can read what is on it. A post with .hold in its file name is shown by bun run dev only: it is never committed, and every build leaves it out, the drafts build too.
Each project's notes (what is built, what is decided, what is open) are in docs/. What changed, by day, is in CHANGELOG.md, and what is still to do in TODO.md.
The code is under an MIT-style license with three added conditions; see LICENSE.md. Everything on the pages (writing, photographs, resume) is under CC BY-NC 4.0.
Headings are in Torrens Serif, my cut of Fraunces by Undercase Type; text is Fraunces; code is Drafting* Mono by Owen Earl. All three are under the SIL Open Font License (src/assets/fonts/OFL-*.txt).