Skip to content

fix: remove git-lfs, restore PNGs as regular git objects#5

Merged
PanQiWei merged 1 commit intomainfrom
hotfix/remove-lfs
Apr 9, 2026
Merged

fix: remove git-lfs, restore PNGs as regular git objects#5
PanQiWei merged 1 commit intomainfrom
hotfix/remove-lfs

Conversation

@PanQiWei
Copy link
Copy Markdown
Owner

@PanQiWei PanQiWei commented Apr 9, 2026

Summary

  • Removes .gitattributes LFS tracking that broke the docs site build
  • Re-adds all PNGs as regular git objects (no longer LFS pointers)
  • All PNGs are already compressed to ≤ 2MB via pngquant, so LFS is unnecessary

Root cause

The build environment (GitHub Pages / mkdocs) doesn't have git-lfs installed. After merging the ch-06 PR which added .gitattributes with LFS tracking, all PNGs became LFS pointers on the remote — the build saw ~130-byte text files instead of actual images.

Test plan

  • Verified PNGs are real binary (PNG magic bytes 89504e47) not LFS pointers
  • All PNGs ≤ 2MB
  • Docs site rebuilds with images visible

🤖 Generated with Claude Code

LFS broke the docs site build — the build environment doesn't have
git-lfs installed, so it saw pointer files instead of real PNGs.

All PNGs are already compressed to ≤ 2MB, so LFS is unnecessary.
Removing .gitattributes and re-adding all PNGs as regular git objects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PanQiWei PanQiWei merged commit e9fabb3 into main Apr 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant