Skip to content

Fix api-documenter CRLF line endings in generated docs - #570

Merged
colincasey merged 1 commit into
masterfrom
fix-api-documenter-line-endings
Mar 12, 2026
Merged

colincasey merged 1 commit into
masterfrom
fix-api-documenter-line-endings

Conversation

@colincasey

@colincasey colincasey commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add api-documenter.json config with "newlineKind": "lf" to fix CRLF output from api-documenter
  • Switch _docs:generate from the markdown subcommand to generate (which reads the config file — the markdown subcommand ignores it and always outputs CRLF)
  • Remove the _docs:fix prettier workaround (was a no-op anyway since api/ is in .prettierignore)
  • Clean up CI workflow comment and workaround

Test plan

  • CI passes (validate-generated-files.sh confirms docs are up to date)
  • Regenerate docs locally with npm run _docs:generate and verify LF line endings

Switch from the `markdown` subcommand to `generate` with an
api-documenter.json config file that sets `newlineKind: "lf"`. The
`markdown` subcommand ignores the config file and always outputs CRLF.

- Add api-documenter.json with outputTarget "markdown" and newlineKind "lf"
- Update _docs:generate script to use `generate` subcommand
- Remove unused _docs:fix script (was a no-op due to .prettierignore)
- Remove CRLF workaround from CI workflow
@colincasey colincasey self-assigned this Mar 12, 2026
@colincasey
colincasey marked this pull request as ready for review March 12, 2026 15:11
@colincasey
colincasey enabled auto-merge (squash) March 12, 2026 15:11
@colincasey
colincasey merged commit afec4e5 into master Mar 12, 2026
11 checks passed
@colincasey
colincasey deleted the fix-api-documenter-line-endings branch March 12, 2026 17:57
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.

2 participants