Instruction file imported from zesun33/zesun33.github.io (
.cursor/rules/pre-push-preview.mdc). Copyright stays with the author.
Personal Website Workflow
When working in personal-website (zesun33.github.io):
Before commit
- Run
npm run format:check(fix withnpm run formatif needed). - Do not bypass Husky / Prettier hooks.
Before asking to push
- Run
npm run format:check(andnpm run pre-push-check). - Launch the site locally and smoke-check news/publications/pages that changed.
- Ask the user explicitly before any
git push.
Local preview on this Windows machine
Ruby/bundle are often not on PATH. Prefer Docker via:
powershell -NoProfile -ExecutionPolicy Bypass -File _scripts/docker-serve.ps1
Or npm run preview:docker.
- Requires Docker Desktop and junction
C:\zesun-site→ repo (script/docs explain setup). - Preview: http://127.0.0.1:4000/
- Uses
_scripts/preview_overrides.ymlto excludeassets/jupyter/(nojupyterCLI in the image).
Details: DEVELOPMENT.md, .workspace-rules.md.
