Sync Markdown Notes
Use this workflow when you want your notes to publish automatically.
Recommended setup
Section titled “Recommended setup”- Keep all notes in
src/content/docs/software-engineering/andsrc/content/docs/projects/. - Use a Git repo (GitHub, GitLab, or Bitbucket).
- Connect your host (Cloudflare Pages, Netlify, or Vercel) to that repo.
- Configure deploy command as
npm run buildand output directory asdist.
Daily flow
Section titled “Daily flow”- Create or edit markdown files locally.
- Run
npm run devto preview. - Commit and push.
- Host rebuilds site automatically.
Optional: notes from another folder
Section titled “Optional: notes from another folder”If your notes live outside this repo, automate sync with a script:
rsync -av --delete ~/notes/software/ ./src/content/docs/software-engineering/rsync -av --delete ~/notes/projects/ ./src/content/docs/projects/Run that script before commit, or schedule it in CI.