# 换行规范：仓库里一律存 LF，检出到工作区时按类型转换。
# 不加这个文件时，Windows 上每个 commit 都会刷 "LF will be replaced by CRLF" 警告，
# 而且别人在 Linux/macOS 上 clone 下来的 shell 脚本会带着 CRLF 跑不起来。
* text=auto eol=lf

# PowerShell / cmd 必须是 CRLF，否则某些环境下解析异常
*.ps1  text eol=crlf
*.psm1 text eol=crlf
*.cmd  text eol=crlf
*.bat  text eol=crlf

# 二进制：不做任何转换
*.png  binary
*.jpg  binary
*.jpeg binary
*.gif  binary
*.webp binary
*.ico  binary
*.glb  binary
*.gltf binary
*.stl  binary
*.3mf  binary
*.step binary
*.safetensors binary
*.gguf binary
*.mp4  binary
*.webm binary
*.zip  binary

# 文档与配置的 diff 友好处理
*.md   text eol=lf
*.json text eol=lf
*.yml  text eol=lf
*.yaml text eol=lf

# 别把生成的展示页算进"主要语言"
docs/showcase/index.html linguist-documentation
docs/**.md               linguist-documentation

# ── 发布包（git archive）排除宣传素材与示例模型 ──
# 实测 v3.7.0 的 zip 30.3 MB，其中 10 MB 是 docs/assets/promo/demo.gif、
# 还有 4 个 docs/showcase 的 STL/GLB 各 3.4–3.8 MB。这些是站点与文档用的，
# 用户装铸想不需要 —— 安装包应当只含代码与必要资源。
docs/assets/promo/ export-ignore
docs/showcase/ export-ignore
