Skip to content

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

fix(ci): fix Windows line-ending CRLF diff issues in build-icons script and git checkout

Praveen Bishnoif73ef478cc0f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 86f31db..212f01c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,6 +29,9 @@ jobs:
with:
persist-credentials: false
+ - name: Configure git line endings
+ run: git config --global core.autocrlf false
+
- name: Set up Python
uses: actions/setup-python@v5
with:
diff --git a/scripts/build-icons.py b/scripts/build-icons.py
index b191b2a..4ee8d63 100644
--- a/scripts/build-icons.py
+++ b/scripts/build-icons.py
@@ -566,11 +566,11 @@ def main() -> int:
md_chunks, gallery_chunks, misses = build()
MD_OUT.parent.mkdir(parents=True, exist_ok=True)
- MD_OUT.write_text("".join(md_chunks), encoding="utf-8")
+ MD_OUT.write_bytes("".join(md_chunks).replace("\r\n", "\n").encode("utf-8"))
HTML_OUT.parent.mkdir(parents=True, exist_ok=True)
html = GALLERY_TEMPLATE.replace("{SECTIONS}", "\n".join(gallery_chunks))
- HTML_OUT.write_text(html, encoding="utf-8")
+ HTML_OUT.write_bytes(html.replace("\r\n", "\n").encode("utf-8"))
total = sum(len(items) for items in ICONS.values())
print(f"\nDone. {total - len(misses)}/{total} fetched.", file=sys.stderr)