Skip to content

fix(docs-ci): make docs_dir rewrite robust to CRLF#33

Merged
imran-siddique merged 1 commit into
mainfrom
fix/docs-crlf
Jul 2, 2026
Merged

fix(docs-ci): make docs_dir rewrite robust to CRLF#33
imran-siddique merged 1 commit into
mainfrom
fix/docs-crlf

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

The Docs workflow's sed 's|^docs_dir: \.$|...|' stopped matching because the committed mkdocs.yml is CRLF, so docs_dir stayed as the repo root and mkdocs aborted ("site_dir within docs_dir"). Every docs deploy has failed since. Fix: tr -d '\r' before sed. Verified locally.

Follow-up (separate): the repo is uniformly CRLF; a .gitattributes with eol=lf + renormalize would prevent this class of issue, but that's a large diff left for its own PR.

🤖 Generated with Claude Code

The Docs workflow rewrites `docs_dir: .` to `.docs_build` with sed, but the
committed mkdocs.yml has CRLF line endings, so the anchored `\.$` no longer
matched on the Linux runner. docs_dir stayed as the repo root and mkdocs aborted
("site_dir within docs_dir"), failing every docs deploy since. Strip CR before
sed so the match works regardless of line endings.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@imran-siddique imran-siddique merged commit 87828c4 into main Jul 2, 2026
12 checks passed
@imran-siddique imran-siddique deleted the fix/docs-crlf branch July 2, 2026 18:20
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