CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
Richard Sprague’s personal website at https://richardsprague.com, built with Quarto. Content covers health/microbiome research, technology, and personal projects. Source .qmd files are rendered to HTML in /docs/, which is committed to git and deployed via rsync to Ionos hosting.
Key Commands
Preview locally (renders and serves with live reload):
quarto preview
# or Cmd+Shift+B in VS Code (configured in .vscode/tasks.json)
# Preview runs at http://localhost:4200Deploy to production (rsync /docs/ to Ionos):
./publishRender without preview:
quarto renderArchitecture
Content Flow
- Write/edit
.qmd(Quarto Markdown) source files in topic directories quarto previewrenders to/docs/and serves locally./publishrsyncs/docs/to Ionos production server- Commit rendered
/docs/along with source.qmdfiles to git
Directory Structure
- Source
.qmdfiles live alongside their rendered.htmlcounterparts - Top-level sections map to sidebar nav defined in
_quarto.yml:microbiome/,health/diet/,health/healthtech/,tech/,tech/crypto/,posts/,personal/ - Each section has an index
.qmd(e.g.,health/diet/diet.qmd) that serves as the section landing page /docs/— all rendered HTML output (committed to git)/_freeze/— cached computation results (gitignored)/_extensions/— Quarto extensions
Configuration
_quarto.yml— site config: theme (litera), output dir (docs/), sidebar structure, analytics, preview port (4200)css/normalize.css— custom CSS applied globallyexecute: freeze: automeans previously-rendered computational content is reused unless source changes
Deployment
- Production: Ionos via
./publish(rsync tou73736168@home474626331.1and1-data.host:RichardSprague/) - Staging option:
ionosgit branch is watched by Ionos Deploy Now at https://home-5010302882.app-ionos.space/ - GitHub Pages (
gh-pagesbranch) exists but is not currently used
Content Notes
- New posts go in the appropriate section directory as
.qmdfiles - After editing
.qmdfiles, always runquarto previeworquarto renderbefore deploying — the/docs/HTML must be regenerated - The
freeze: autosetting means computation-heavy documents are cached; force re-render withquarto render --no-cacheif needed